Automatically use requested host as Aria2 RPC host by default
This commit is contained in:
parent
731da3fcf9
commit
cfee235154
|
@ -4,7 +4,7 @@ angular
|
||||||
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}')
|
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}')
|
||||||
.constant('$pageSize', 11) // number of downloads shown before pagination kicks in
|
.constant('$pageSize', 11) // number of downloads shown before pagination kicks in
|
||||||
.constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised
|
.constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised
|
||||||
host: 'localhost',
|
host: location.protocol.startsWith('http') ? location.hostname : 'localhost',
|
||||||
path: '/jsonrpc',
|
path: '/jsonrpc',
|
||||||
port: 6800,
|
port: 6800,
|
||||||
encrypt: false,
|
encrypt: false,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user