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}`; }