added host name heuristics for selecting aria2 server
This commit is contained in:
parent
80581ad7db
commit
cfb721b57d
|
@ -14,6 +14,14 @@ function(syscall, time, alerts, utils, rootScope) {
|
||||||
, timeout = null
|
, timeout = null
|
||||||
, forceNextUpdate = false;
|
, forceNextUpdate = false;
|
||||||
|
|
||||||
|
if (window.location.protocol === "http:") {
|
||||||
|
configurations.unshift({
|
||||||
|
host: window.location.hostname,
|
||||||
|
port: 6800,
|
||||||
|
encrypt: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var cookieConf = utils.getCookie('aria2conf');
|
var cookieConf = utils.getCookie('aria2conf');
|
||||||
if (cookieConf) configurations.unshift(cookieConf);
|
if (cookieConf) configurations.unshift(cookieConf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user