Changeset 12846 in josm for trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControl.java
- Timestamp:
- 2017-09-13T23:24:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControl.java
r12703 r12846 11 11 import org.openstreetmap.josm.data.preferences.BooleanProperty; 12 12 import org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler; 13 import org.openstreetmap.josm.spi.preferences.Config; 13 14 import org.openstreetmap.josm.tools.Logging; 14 15 … … 105 106 */ 106 107 public static InetAddress getInet6Address() throws UnknownHostException { 107 for (InetAddress a : InetAddress.getAllByName( Main.pref.get("remote.control.host.ipv6", "::1"))) {108 for (InetAddress a : InetAddress.getAllByName(Config.getPref().get("remote.control.host.ipv6", "::1"))) { 108 109 if (a instanceof Inet6Address) { 109 110 return a; … … 121 122 public static InetAddress getInet4Address() throws UnknownHostException { 122 123 // Return an address to the loopback interface by default 123 for (InetAddress a : InetAddress.getAllByName( Main.pref.get("remote.control.host.ipv4", "127.0.0.1"))) {124 for (InetAddress a : InetAddress.getAllByName(Config.getPref().get("remote.control.host.ipv4", "127.0.0.1"))) { 124 125 if (a instanceof Inet4Address) { 125 126 return a;
Note:
See TracChangeset
for help on using the changeset viewer.