diff --git a/tlssniffer.go b/tlssniffer.go index 89a1798..cf733d7 100644 --- a/tlssniffer.go +++ b/tlssniffer.go @@ -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 }