Ignore:
Timestamp:
2017-09-13T23:24:50+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - use Config.getPref() wherever possible

File:
1 edited

Legend:

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

    r12703 r12846  
    1111import org.openstreetmap.josm.data.preferences.BooleanProperty;
    1212import org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler;
     13import org.openstreetmap.josm.spi.preferences.Config;
    1314import org.openstreetmap.josm.tools.Logging;
    1415
     
    105106     */
    106107    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"))) {
    108109            if (a instanceof Inet6Address) {
    109110                return a;
     
    121122    public static InetAddress getInet4Address() throws UnknownHostException {
    122123        // 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"))) {
    124125            if (a instanceof Inet4Address) {
    125126                return a;
Note: See TracChangeset for help on using the changeset viewer.