Include IP address in label.

This commit is contained in:
Tom Wilkie
2016-04-21 16:20:39 +01:00
parent 0a51064713
commit fc46301c32

View File

@@ -214,7 +214,7 @@ func connectionRows(r report.Report, in map[connection]int, includeLocal bool) [
// Does localNode have a DNS record in it?
label := row.localAddr
if set, ok := row.localNode.Sets.Lookup(endpoint.ReverseDNSNames); ok && len(set) > 0 {
label = set[0]
label = fmt.Sprintf("%s (%s)", set[0], label)
}
connection.Metadata = append(connection.Metadata,
report.MetadataRow{