Changeset 11455 in josm for trunk


Ignore:
Timestamp:
2017-01-12T02:09:49+01:00 (3 years ago)
Author:
Don-vip
Message:

sonar - findsecbugs:UNENCRYPTED_SOCKET - Security - Unencrypted Socket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r11255 r11455  
    1212import java.net.Inet6Address;
    1313import java.net.InetAddress;
    14 import java.net.InetSocketAddress;
    1514import java.net.ProxySelector;
    16 import java.net.Socket;
    1715import java.net.URL;
    1816import java.security.AllPermission;
     
    3634import java.util.stream.Stream;
    3735
     36import javax.net.ssl.SSLSocketFactory;
    3837import javax.swing.JOptionPane;
    3938import javax.swing.RepaintManager;
     
    448447                            if (a.isReachable(1000)) {
    449448                                /* 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();
    453450                                Utils.updateSystemProperty("java.net.preferIPv6Addresses", "true");
    454451                                if (!wasv6) {
Note: See TracChangeset for help on using the changeset viewer.