From 68b7ffa855dd4ae3178b4472837d533b5145b5bb Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 31 Aug 2023 02:29:32 -0400 Subject: [PATCH] fix: do a truthy check on networkId --- src/service/p2p.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/p2p.ts b/src/service/p2p.ts index b332554..f9000a4 100644 --- a/src/service/p2p.ts +++ b/src/service/p2p.ts @@ -98,7 +98,7 @@ export class P2PService { peerNetworkId = u.unpackString(); } catch {} - if (peerNetworkId !== this.networkId) { + if (this.networkId && peerNetworkId !== this.networkId) { throw `Peer is in different network: ${peerNetworkId}`; }