From 18cf21b0bd9985b14924c150b017f71799bf1a1f Mon Sep 17 00:00:00 2001 From: Nodari Chkuaselidze Date: Fri, 11 Jul 2025 14:02:09 +0400 Subject: [PATCH] node/dns: allow setting different public-host for root server. Co-authored-by: Rithvik Vibhu --- lib/node/fullnode.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node/fullnode.js b/lib/node/fullnode.js index 0e8bbdcb..801fe753 100644 --- a/lib/node/fullnode.js +++ b/lib/node/fullnode.js @@ -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') });