From a021243c8954ddedcd99c8bd32901055dbba49a7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 31 Aug 2023 02:35:29 -0400 Subject: [PATCH] fix: we dont need to strip out auth --- src/service/p2p.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/service/p2p.ts b/src/service/p2p.ts index daf7548..f17ab17 100644 --- a/src/service/p2p.ts +++ b/src/service/p2p.ts @@ -507,10 +507,7 @@ export class P2PService { await this.onNewPeer(peer, true); } else { - const locationUri = new URL(connectionUri.toString()); - locationUri.username = ""; - - const channel = await wsConnect(locationUri.toString()); + const channel = await wsConnect(connectionUri.toString()); const peer = new WebSocketPeer(channel, [connectionUri]); peer.id = id; await this.onNewPeer(peer, true);