mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00: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