Changeset 7830 in josm for trunk/src


Ignore:
Timestamp:
2014-12-19T13:19:16+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #10833 - simplify remote control interface management: let Java return the local loopback interface by itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControl.java

    r7826 r7830  
    3737    static final int protocolMajorVersion = 1;
    3838    static final int protocolMinorVersion = 7;
    39 
    40     private static final String LOCALHOST = "127.0.0.1";
    4139
    4240    /**
     
    8482     */
    8583    public static InetAddress getInetAddress() throws UnknownHostException {
    86         return InetAddress.getByName(Main.pref.get("remote.control.host", LOCALHOST));
     84        // Return an address to the loopback interface by default
     85        return InetAddress.getByName(Main.pref.get("remote.control.host", null));
    8786    }
    8887}
Note: See TracChangeset for help on using the changeset viewer.