Skip to content

Commit b901034

Browse files
committed
Merge PR #940 from 'nodech/dns-different-host'
2 parents 9f71ba3 + 18cf21b commit b901034

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/node/fullnode.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@ class FullNode extends Node {
162162
});
163163

164164
if (!this.config.bool('no-dns')) {
165+
const publicHost = this.config.str('public-host');
166+
165167
this.ns = new RootServer({
166168
logger: this.logger,
167169
key: this.identityKey,
168170
host: this.config.str('ns-host'),
169171
port: this.config.uint('ns-port', this.network.nsPort),
170172
lookup: key => this.chain.db.tree.get(key),
171-
publicHost: this.config.str('public-host'),
173+
publicHost: this.config.str('ns-public-host', publicHost),
172174
noSig0: this.config.bool('no-sig0')
173175
});
174176

0 commit comments

Comments
 (0)