Changeset 11455 in josm for trunk/src/org
- Timestamp:
- 2017-01-12T02:09:49+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r11255 r11455 12 12 import java.net.Inet6Address; 13 13 import java.net.InetAddress; 14 import java.net.InetSocketAddress;15 14 import java.net.ProxySelector; 16 import java.net.Socket;17 15 import java.net.URL; 18 16 import java.security.AllPermission; … … 36 34 import java.util.stream.Stream; 37 35 36 import javax.net.ssl.SSLSocketFactory; 38 37 import javax.swing.JOptionPane; 39 38 import javax.swing.RepaintManager; … … 448 447 if (a.isReachable(1000)) { 449 448 /* be sure it REALLY works */ 450 Socket s = new Socket(); 451 s.connect(new InetSocketAddress(a, 80), 1000); 452 s.close(); 449 SSLSocketFactory.getDefault().createSocket(a, 443).close(); 453 450 Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true"); 454 451 if (!wasv6) {
Note:
See TracChangeset
for help on using the changeset viewer.