mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 23:00:01 -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;
|
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 = '';
|
let fakeProtocol = '';
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ export class BareClient {
|
||||||
let switcher = findSwitcher();
|
let switcher = findSwitcher();
|
||||||
if (!switcher.active) throw "there are no bare clients";
|
if (!switcher.active) throw "there are no bare clients";
|
||||||
const client = switcher.active;
|
const client = switcher.active;
|
||||||
if (!client.ready) await (client as any).initpromise;
|
if (!client.ready) await client.init();
|
||||||
|
|
||||||
for (let i = 0; ; i++) {
|
for (let i = 0; ; i++) {
|
||||||
if ('host' in headers) headers.host = urlO.host;
|
if ('host' in headers) headers.host = urlO.host;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue