Changeset 15320 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2019-08-25T11:49:58+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r15229 r15320 1192 1192 /* be sure it REALLY works */ 1193 1193 SSLSocketFactory.getDefault().createSocket(a, 443).close(); 1194 hasv6 = true; 1195 /* in case of routing problems to the main openstreetmap domain don't enable IPv6 */ 1196 for (InetAddress b : InetAddress.getAllByName("api.openstreetmap.org")) { 1197 if (b instanceof Inet6Address) { 1198 if (b.isReachable(1000)) { 1199 SSLSocketFactory.getDefault().createSocket(b, 443).close(); 1200 } else { 1201 hasv6 = false; 1202 } 1203 break; /* we're done */ 1204 } 1205 } 1194 1206 Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true"); 1195 1207 if (!wasv6) { … … 1198 1210 Logging.info(tr("Detected useable IPv6 network, preferring IPv6 over IPv4.")); 1199 1211 } 1200 hasv6 = true;1201 1212 } 1202 1213 break; /* we're done */
Note:
See TracChangeset
for help on using the changeset viewer.