diff --git a/index.js b/index.js index 0314b9e..7fb453c 100644 --- a/index.js +++ b/index.js @@ -14,11 +14,12 @@ for (let i=0; i < hostsCount; i++) { let host = config.hosts[i] console.log(`Registering ${host.host} to ${host.target}`); if (!host.disable) { - if (!host.options) { + const options = host.options ? config.default_host_options; + if (!options) { redbird.register(host.host, host.target); } else { - redbird.register(host.host, host.target, host.options); + redbird.register(host.host, host.target, options); } }