added host name heuristics for selecting aria2 server

This commit is contained in:
hamza zia 2013-03-19 22:03:34 +01:00
parent 80581ad7db
commit cfb721b57d

View File

@ -14,6 +14,14 @@ function(syscall, time, alerts, utils, rootScope) {
, timeout = null
, forceNextUpdate = false;
if (window.location.protocol === "http:") {
configurations.unshift({
host: window.location.hostname,
port: 6800,
encrypt: false
});
}
var cookieConf = utils.getCookie('aria2conf');
if (cookieConf) configurations.unshift(cookieConf);