- Timestamp:
- 2014-04-12T09:45:42+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java
r6890 r6971 97 97 /** Property key for proxy password */ 98 98 public static final String PROXY_PASS = "proxy.pass"; 99 /** Property key for proxy exceptions list */ 100 public static final String PROXY_EXCEPTIONS = "proxy.exceptions"; 99 101 100 102 private Map<ProxyPolicy, JRadioButton> rbProxyPolicy; -
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r6890 r6971 11 11 import java.net.SocketAddress; 12 12 import java.net.URI; 13 import java.util.Arrays; 13 14 import java.util.Collections; 14 15 import java.util.HashSet; … … 65 66 private final Set<String> errorResources = new HashSet<String>(); 66 67 private final Set<String> errorMessages = new HashSet<String>(); 68 private Set<String> proxyExceptions; 67 69 68 70 /** … … 138 140 } 139 141 } 142 proxyExceptions = new HashSet<String>( 143 Main.pref.getCollection(ProxyPreferencesPanel.PROXY_EXCEPTIONS, 144 Arrays.asList(new String[]{"localhost", "127.0.0.1"})) 145 ); 140 146 } 141 147 … … 187 193 @Override 188 194 public List<Proxy> select(URI uri) { 189 if (uri != null && "localhost".equals(uri.getHost())) {195 if (uri != null && proxyExceptions.contains(uri.getHost())) { 190 196 return NO_PROXY_LIST; 191 197 }
Note:
See TracChangeset
for help on using the changeset viewer.