summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbt90 <btom1990@googlemail.com>2023-09-20 11:23:48 +0200
committerGitHub <noreply@github.com>2023-09-20 11:23:48 +0200
commitcf46bf029755997899da1d20d5634519c677ec84 (patch)
tree111bc96716b228eaa1ab5ffbb8985b7d42ff03e5
parent051cbdc71339ddf9c49b58a32e172718cf76a67b (diff)
lib/connections: Fix transport type detection for QUIC (fixes #8274) (#9114)
Check remote address
-rw-r--r--lib/connections/structs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connections/structs.go b/lib/connections/structs.go
index 37c8ef4849..21fe7a9f66 100644
--- a/lib/connections/structs.go
+++ b/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
}