bug fix
This commit is contained in:
+1
-1
@@ -208,7 +208,7 @@ func (c *Conn) isTLSConnection() (bool, error) {
|
||||
}
|
||||
c.hostname = hello.ServerName
|
||||
if c.hostname == "" {
|
||||
c.hostname, _, _ = net.SplitHostPort(c.Conn.RemoteAddr().String())
|
||||
c.hostname, _, _ = net.SplitHostPort(c.Conn.LocalAddr().String())
|
||||
}
|
||||
return isTLS, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user