Some comment fixes.
This commit is contained in:
@@ -192,20 +192,20 @@ public abstract class Getdown
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected boolean detectProxy () {
|
protected boolean detectProxy () {
|
||||||
// see if we actually need a proxy; first we have to initialize our application
|
// first we have to initialize our application to get the appbase URL, etc.
|
||||||
// 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...");
|
||||||
try {
|
try {
|
||||||
readConfig(true);
|
readConfig(true);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
// no worries
|
// no worries
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean tryNoProxy = SysProps.tryNoProxyFirst();
|
boolean tryNoProxy = SysProps.tryNoProxyFirst();
|
||||||
if (!tryNoProxy && ProxyUtil.autoDetectProxy(_app)) {
|
if (!tryNoProxy && ProxyUtil.autoDetectProxy(_app)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// see if we actually need a proxy
|
||||||
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