autoDetectProxy needs initialized configuration
This commit is contained in:
@@ -192,11 +192,6 @@ public abstract class Getdown
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected boolean detectProxy () {
|
protected boolean detectProxy () {
|
||||||
boolean tryNoProxy = SysProps.tryNoProxyFirst();
|
|
||||||
if (!tryNoProxy && ProxyUtil.autoDetectProxy(_app)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// see if we actually need a proxy; first we have to initialize our application
|
// see if we actually need a proxy; first we have to initialize our application
|
||||||
// to get some sort of interface configuration and the appbase URL
|
// to get some sort of interface configuration and the appbase URL
|
||||||
log.info("Checking whether we need to use a proxy...");
|
log.info("Checking whether we need to use a proxy...");
|
||||||
@@ -205,6 +200,12 @@ public abstract class Getdown
|
|||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
// no worries
|
// no worries
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean tryNoProxy = SysProps.tryNoProxyFirst();
|
||||||
|
if (!tryNoProxy && ProxyUtil.autoDetectProxy(_app)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
updateStatus("m.detecting_proxy");
|
updateStatus("m.detecting_proxy");
|
||||||
URL configURL = _app.getConfigResource().getRemote();
|
URL configURL = _app.getConfigResource().getRemote();
|
||||||
if (!ProxyUtil.canLoadWithoutProxy(configURL, tryNoProxy ? 2 : 5)) {
|
if (!ProxyUtil.canLoadWithoutProxy(configURL, tryNoProxy ? 2 : 5)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user