mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-21 02:21:58 -08:00
Don't force a TLS handshake for new clients anymore. Go's tls package has made this guaranteed for some time.
This commit is contained in:
parent
705b43bcd5
commit
18adc1a41d
1 changed files with 0 additions and 10 deletions
10
server.go
10
server.go
|
|
@ -1035,16 +1035,6 @@ func (s *Server) ListenAndMurmur() {
|
||||||
log.Printf("Unable to accept() new client.")
|
log.Printf("Unable to accept() new client.")
|
||||||
}
|
}
|
||||||
|
|
||||||
tls, ok := conn.(*tls.Conn)
|
|
||||||
if !ok {
|
|
||||||
log.Panic("Internal inconsistency error.")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Force the TLS handshake to get going. We'd like
|
|
||||||
// this to happen as soon as possible, so we can get
|
|
||||||
// at client certificates sooner.
|
|
||||||
tls.Handshake()
|
|
||||||
|
|
||||||
// Create a new client connection from our *tls.Conn
|
// Create a new client connection from our *tls.Conn
|
||||||
// which wraps net.TCPConn.
|
// which wraps net.TCPConn.
|
||||||
err = s.NewClient(conn)
|
err = s.NewClient(conn)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue