EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.81k stars 415 forks source link

java.net.preferIPv6Addresses is set to false #157

Open Betalord opened 4 years ago

Betalord commented 4 years ago

In Client.java (https://github.com/EsotericSoftware/kryonet/blob/master/src/com/esotericsoftware/kryonet/Client.java) at line 53, there is a call: System.setProperty("java.net.preferIPv6Addresses", "false"); Now I don't think this is necessary. On my phone, it returns this error:

03-26 10:56:33.042: E/System(11677): Ignoring attempt to set property "java.net.preferIPv6Addresses" to value "false".

Which is an error, but gets ignored (app runs regardless of it on my phone). I'm not sure about it, however I think it should be fixed.