mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 01:15:41 +08:00
Merge branch 'master' into dev
This commit is contained in:
commit
63caac133d
@ -84,6 +84,7 @@ func (s *Trojan) Serve(c net.Conn) {
|
||||
|
||||
if s.withTLS {
|
||||
tlsConn := tls.Server(c, s.tlsConfig)
|
||||
defer tlsConn.Close()
|
||||
err := tlsConn.Handshake()
|
||||
if err != nil {
|
||||
log.F("[trojan] error in tls handshake: %s", err)
|
||||
|
Loading…
Reference in New Issue
Block a user