bug fix
This commit is contained in:
parent
7a17672149
commit
54958724e7
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user