Skip to content

Commit

Permalink
refactor: remove deprecated codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherlock-Holo committed Mar 23, 2020
1 parent 9190f8d commit 7c9f4e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions session/quic/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ func NewServer(listenAddr, secret string, period uint, serverCert tls.Certificat
opt.apply(server)
}

server.tlsConfig.BuildNameToCertificate()

listener, err := quic.ListenAddr(listenAddr, server.tlsConfig, &quic.Config{
KeepAlive: true,
MaxIncomingStreams: math.MaxInt32,
Expand Down
2 changes: 0 additions & 2 deletions session/wsslink/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ func NewServer(listenAddr, host, wsPath, secret string, period uint, serverCert
opt.apply(wl)
}

wl.tlsConfig.BuildNameToCertificate()

wl.httpServer = http.Server{Handler: wl.httpMux}

tlsListener, err := tls.Listen("tcp", listenAddr, wl.tlsConfig)
Expand Down

0 comments on commit 7c9f4e9

Please # to comment.