Skip to content

Commit

Permalink
Automatically use requested host as Aria2 RPC host by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Thuan Nguyen committed Aug 13, 2016
1 parent 731da3f commit cfee235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configuration.js
Expand Up @@ -4,7 +4,7 @@ angular
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}')
.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
host: 'localhost',
host: location.protocol.startsWith('http') ? location.hostname : 'localhost',
path: '/jsonrpc',
port: 6800,
encrypt: false,
Expand Down

0 comments on commit cfee235

Please sign in to comment.