include peer nickname in display output whenever possible

This commit is contained in:
Matthias Radestock committed 2015-03-27 05:25:28 +00:00
1 parent 1eca5e1097
commit 33520ea230
8 files changed
+29 -25

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ func (cache *MacCache) String() string {
cache.RLock()
defer cache.RUnlock()
for key, entry := range cache.table {
fmt.Fprintf(&buf, "%v -> %s (%v)\n", intmac(key), entry.peer.Name, entry.lastSeen)
fmt.Fprintf(&buf, "%v -> %s (%v)\n", intmac(key), entry.peer.FullName(), entry.lastSeen)
}
return buf.String()
}