Include selected overlay type in connection status

This commit is contained in:
Adam Harrison committed 2015-10-13 17:04:56 +01:00
1 parent da49e71eb8
commit 91afa7f7f4
5 files changed
+31 -1

No files matched your search

+12
View File
@@ -393,3 +393,15 @@ func (fwd *overlaySwitchForwarder) ControlMessage(tag byte, msg []byte) {
subFwd.ControlMessage(msg[1], msg[2:])
}
}
func (fwd *overlaySwitchForwarder) DisplayName() string {
fwd.lock.Lock()
best := fwd.best
fwd.lock.Unlock()
if best == nil {
return "none"
}
return best.DisplayName()
}