Changeset 18211 in josm for trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
- Timestamp:
- 2021-09-12T02:10:25+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r14273 r18211 142 142 httpProxySocketAddress = null; 143 143 if (proxyPolicy == ProxyPolicy.USE_HTTP_PROXY) { 144 if ( host != null && !host.trim().isEmpty() && port > 0) {144 if (!Utils.isBlank(host) && port > 0) { 145 145 httpProxySocketAddress = new InetSocketAddress(host, port); 146 146 } else { … … 154 154 socksProxySocketAddress = null; 155 155 if (proxyPolicy == ProxyPolicy.USE_SOCKS_PROXY) { 156 if ( host != null && !host.trim().isEmpty() && port > 0) {156 if (!Utils.isBlank(host) && port > 0) { 157 157 socksProxySocketAddress = new InetSocketAddress(host, port); 158 158 } else {
Note:
See TracChangeset
for help on using the changeset viewer.