Browse Source

lib/connections: Fix transport type detection for QUIC (fixes #8274) (#9114)

Check remote address
bt90 2 years ago
parent
commit
cf46bf0297
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/connections/structs.go

+ 1 - 1
lib/connections/structs.go

@@ -126,7 +126,7 @@ func (c internalConn) Crypto() string {
 
 func (c internalConn) Transport() string {
 	transport := c.connType.Transport()
-	ip, err := osutil.IPFromAddr(c.LocalAddr())
+	ip, err := osutil.IPFromAddr(c.RemoteAddr())
 	if err != nil {
 		return transport
 	}