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
@@ -88,6 +88,9 @@ type OverlayForwarder interface {
|
||||
// compatibility, and should always be
|
||||
// ProtocolOverlayControlMessage for non-sleeve overlays.
|
||||
ControlMessage(tag byte, msg []byte)
|
||||
|
||||
// User facing overlay name
|
||||
DisplayName() string
|
||||
}
|
||||
|
||||
type NullOverlay struct{}
|
||||
@@ -129,3 +132,7 @@ func (NullOverlay) Stop() {
|
||||
|
||||
func (NullOverlay) ControlMessage(byte, []byte) {
|
||||
}
|
||||
|
||||
func (NullOverlay) DisplayName() string {
|
||||
return "null"
|
||||
}
|
||||
Reference in new issue
Block a user