mirror of
https://github.com/corda/corda.git
synced 2025-06-18 23:28:21 +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:
@ -135,7 +135,7 @@ public class Misc {
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws Exception {
|
||||
zam();
|
||||
|
||||
Bim bim = new Baz();
|
||||
@ -287,6 +287,10 @@ public class Misc {
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
expect(java.util.Arrays.equals
|
||||
(new byte[] { 0, 0, 0, 0 },
|
||||
java.net.InetAddress.getByName("0.0.0.0").getAddress()));
|
||||
}
|
||||
|
||||
protected class Protected { }
|
||||
|
Reference in New Issue
Block a user