diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2017-01-07 12:52:51 +0100 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2017-01-07 12:52:51 +0100 |
commit | d36e078228fbebf4a4c9cf003e05c6c150ed90e1 (patch) | |
tree | 7742d123cc54da286a234fac3bab35bd89e6ee29 /src | |
parent | 6830162ae244f90c07bc43fb440039680641bbb9 (diff) | |
download | jitsi-d36e078228fbebf4a4c9cf003e05c6c150ed90e1.zip jitsi-d36e078228fbebf4a4c9cf003e05c6c150ed90e1.tar.gz jitsi-d36e078228fbebf4a4c9cf003e05c6c150ed90e1.tar.bz2 |
Log Java IP stack properties
The generic logging of all system properties wouldn't log them if not
set. Also specifically doesn't use Boolean.getBoolean to handle empty
cases.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/java/sip/communicator/util/NetworkUtils.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/NetworkUtils.java b/src/net/java/sip/communicator/util/NetworkUtils.java index 310b8b1..2bb4c2b 100644 --- a/src/net/java/sip/communicator/util/NetworkUtils.java +++ b/src/net/java/sip/communicator/util/NetworkUtils.java @@ -107,6 +107,14 @@ public class NetworkUtils */ private static final Random random = new Random(); + static + { + String prefer6 = System.getProperty("java.net.preferIPv6Addresses"); + String prefer4 = System.getProperty("java.net.preferIPv4Stack"); + logger.info("java.net.preferIPv6Addresses=" + prefer6); + logger.info("java.net.preferIPv4Stack=" + prefer4); + } + /** * Determines whether the address is the result of windows auto configuration. * (i.e. One that is in the 169.254.0.0 network) |