mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
47d9039b69
gethostbyname may return any combination of IPv4 and IPv6 addresses, and it's not safe to assume the first address is IPv4, which is all our code is currently prepared to handle. In contrast, getaddrinfo allows us to specify whether we want IPv4, IPv6, or both. We should eventually make this switch on Windows as well, but the status of getaddrinfo in Windows 2000 is not clear, and MinGW's ws2tcpip.h only declares it for XP and above. This commit also adds InetAddress.getByName for explicit DNS lookups. |
||
---|---|---|
.. | ||
avian | ||
java | ||
java-io.cpp | ||
java-lang.cpp | ||
java-net.cpp | ||
java-nio.cpp | ||
java-util-zip.cpp | ||
java-util.cpp | ||
jni-util.h |