Commit 934897b153a0b650107b4da4a93ae9448a1f183a
1 parent
5ff6c791ef
Exists in
master
config.default_host_options
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
index.js
... | ... | @@ -14,11 +14,12 @@ for (let i=0; i < hostsCount; i++) { |
14 | 14 | let host = config.hosts[i] |
15 | 15 | console.log(`Registering ${host.host} to ${host.target}`); |
16 | 16 | if (!host.disable) { |
17 | - if (!host.options) { | |
17 | + const options = host.options ? config.default_host_options; | |
18 | + if (!options) { | |
18 | 19 | redbird.register(host.host, host.target); |
19 | 20 | } |
20 | 21 | else { |
21 | - redbird.register(host.host, host.target, host.options); | |
22 | + redbird.register(host.host, host.target, options); | |
22 | 23 | } |
23 | 24 | |
24 | 25 | } |