Merge PR #940 from 'nodech/dns-different-host'
This commit is contained in:
commit
b901034522
1 changed files with 3 additions and 1 deletions
|
|
@ -162,13 +162,15 @@ class FullNode extends Node {
|
|||
});
|
||||
|
||||
if (!this.config.bool('no-dns')) {
|
||||
const publicHost = this.config.str('public-host');
|
||||
|
||||
this.ns = new RootServer({
|
||||
logger: this.logger,
|
||||
key: this.identityKey,
|
||||
host: this.config.str('ns-host'),
|
||||
port: this.config.uint('ns-port', this.network.nsPort),
|
||||
lookup: key => this.chain.db.tree.get(key),
|
||||
publicHost: this.config.str('public-host'),
|
||||
publicHost: this.config.str('ns-public-host', publicHost),
|
||||
noSig0: this.config.bool('no-sig0')
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue