mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-06 01:08:03 +00:00
diagnostics: make fourTuple.String() human-readable
This commit is contained in:
@@ -23,7 +23,7 @@ func makeFourTuple(fromAddr, toAddr net.IP, fromPort, toPort uint16) fourTuple {
|
||||
}
|
||||
|
||||
func (t fourTuple) String() string {
|
||||
return fmt.Sprintf("%s:%d-%s:%d", t.fromAddr, t.fromPort, t.toAddr, t.toPort)
|
||||
return fmt.Sprintf("%s:%d-%s:%d", net.IP(t.fromAddr[:]), t.fromPort, net.IP(t.toAddr[:]), t.toPort)
|
||||
}
|
||||
|
||||
// key is a sortable direction-independent key for tuples, used to look up a
|
||||
|
||||
Reference in New Issue
Block a user