Browse Source

cmd/mconnect-discover: display tcp port

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
bboozzoo/golang
Maciek Borzecki 7 years ago
parent
commit
b675280994
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cmd/mconnect-discover/main.go

+ 2
- 2
cmd/mconnect-discover/main.go View File

@ -94,10 +94,10 @@ func main() {
d.From, d.Identity) d.From, d.Identity)
if _, ok := devices[d.Identity.DeviceId]; !ok { if _, ok := devices[d.Identity.DeviceId]; !ok {
devices[d.Identity.DeviceId] = d devices[d.Identity.DeviceId] = d
fmt.Fprintf(Stdout, " * %q (ID: %v) %v\n",
fmt.Fprintf(Stdout, " * %q (ID: %v) %v:%v\n",
d.Identity.DeviceName, d.Identity.DeviceName,
d.Identity.DeviceId, d.Identity.DeviceId,
d.From.IP)
d.From.IP, d.Identity.TcpPort)
} }
} }
} }

Loading…
Cancel
Save