mirror of
https://github.com/corda/corda.git
synced 2025-06-16 22:28:15 +00:00
don't throw UnknownHostException from InetAddress.getByName("0.0.0.0")
0.0.0.0 means any local interface, which is commonly used by servers which wish to listen on all interfaces.
This commit is contained in:
@ -19,9 +19,6 @@ public class InetAddress {
|
||||
private InetAddress(String name) throws UnknownHostException {
|
||||
this.name = name;
|
||||
this.ip = ipv4AddressForName(name);
|
||||
if (ip == 0) {
|
||||
throw new UnknownHostException(name);
|
||||
}
|
||||
}
|
||||
|
||||
public String getHostName() {
|
||||
|
Reference in New Issue
Block a user