Implement toString() in class InetEndpoint.
This commit is contained in:
parent
053237600e
commit
9b8ef5d64c
1 changed files with 4 additions and 0 deletions
|
@ -875,6 +875,10 @@ class InetEndpoint {
|
|||
return port;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return addr == null ? "0.0.0.0:" + port : addr + ":" + port;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue