This commit is contained in:
兔子 2025-06-13 17:16:38 +08:00
parent 7a17672149
commit 54958724e7

View File

@ -208,7 +208,7 @@ func (c *Conn) isTLSConnection() (bool, error) {
} }
c.hostname = hello.ServerName c.hostname = hello.ServerName
if c.hostname == "" { if c.hostname == "" {
c.hostname, _, _ = net.SplitHostPort(c.Conn.RemoteAddr().String()) c.hostname, _, _ = net.SplitHostPort(c.Conn.LocalAddr().String())
} }
return isTLS, nil return isTLS, nil
} }