Include selected overlay type in connection status
This commit is contained in:
1 parent
da49e71eb8
commit
91afa7f7f4
5 files changed
+31
-1
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user