diff --git a/lib/connections/structs.go b/lib/connections/structs.go index 37c8ef484..21fe7a9f6 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 }