mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-15 18:08:45 -07:00
Check remote address
This commit is contained in:
parent
051cbdc713
commit
cf46bf0297
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user