Merge PR #940 from 'nodech/dns-different-host'

This commit is contained in:
Nodari Chkuaselidze 2025-07-11 14:27:16 +04:00
commit b901034522
No known key found for this signature in database
GPG key ID: B018A7BB437D1F05

View file

@ -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')
});