diff --git a/tls.go b/tls.go index 5d39fae..d17750f 100644 --- a/tls.go +++ b/tls.go @@ -208,7 +208,7 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) { } mutex.Unlock() if hs.c.conn != conn { - if config.Show { + if config.Show && hs.clientHello != nil { fmt.Printf("REALITY remoteAddr: %v\tforwarded SNI: %v\n", remoteAddr, hs.clientHello.serverName) } io.Copy(target, underlying)