Include remote hostname for connections in router status

This commit is contained in:
Adam Harrison committed 2015-02-19 13:34:01 +00:00
1 parent f517b947e6
commit 1707244725
1 file changed
+1 -1
+1 -1
View File
@@ -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()