mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -04:00
connect to 127.0.0.1 instead of null
This commit is contained in:
parent
b678854acd
commit
3a48e24c0c
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ export class BareClient {
|
|||
|
||||
|
||||
let wsImpl = (webSocketImpl || WebSocket) as WebSocketImpl;
|
||||
const socket = new wsImpl("wss:null", protocols);
|
||||
const socket = new wsImpl("ws://127.0.0.1:1", protocols);
|
||||
|
||||
let fakeProtocol = '';
|
||||
|
||||
|
@ -340,7 +340,7 @@ export class BareClient {
|
|||
let switcher = findSwitcher();
|
||||
if (!switcher.active) throw "there are no bare clients";
|
||||
const client = switcher.active;
|
||||
if (!client.ready) await (client as any).initpromise;
|
||||
if (!client.ready) await client.init();
|
||||
|
||||
for (let i = 0; ; i++) {
|
||||
if ('host' in headers) headers.host = urlO.host;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue