fix: we need to override the tcp client on the NS icann resolver to pipe connections properly

This commit is contained in:
Derrick Hammer 2023-08-04 11:33:40 -04:00
parent 279de558d7
commit 1a803193e6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 1 deletions

View File

@ -145,9 +145,14 @@ async function handlePresentKey(aq: ActiveQuery) {
node.http.http.listen = (port: number, host: string, cb: Function) => cb();
}
const tcpClient = new TCPClient({ node, swarm });
node.rs.hns.forceTCP = true;
node.rs.hns.socket = new TCPClient({ node, swarm });
node.rs.hns.socket = tcpClient;
node.ns.icann.forceTCP = true;
node.ns.icann.socket = tcpClient;
node.rs.hns.init();
node.ns.icann.init();
proxy = new MultiSocketProxy({
protocol: PROTOCOL,