Include remote hostname for connections in router status
This commit is contained in:
1 parent
f517b947e6
commit
1707244725
1 file changed
+1
-1
+1
-1
@@ -128,7 +128,7 @@ func (peers *Peers) String() string {
|
||||
if !conn.Established() {
|
||||
established = " (unestablished)"
|
||||
}
|
||||
buf.WriteString(fmt.Sprintf(" -> %v [%v%s]\n", remoteName, conn.RemoteTCPAddr(), established))
|
||||
buf.WriteString(fmt.Sprintf(" -> %v (%v) [%v%s]\n", remoteName, conn.Remote().HostName, conn.RemoteTCPAddr(), established))
|
||||
})
|
||||
})
|
||||
return buf.String()
|
||||
|
||||
Reference in new issue
Block a user