mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 22:10:01 -04:00
bypatrol wisp detector bypass 9000 working 2024
This commit is contained in:
parent
7535ef8f48
commit
7c9605474d
2 changed files with 47 additions and 50 deletions
|
@ -78,10 +78,7 @@ pub enum EpoxyError {
|
|||
#[error("Webpki: {0:?} ({0})")]
|
||||
Webpki(#[from] webpki::Error),
|
||||
|
||||
#[error("Wisp WebSocket failed to connect")]
|
||||
WebSocketConnectFailed,
|
||||
|
||||
#[error("Custom wisp transport: {0}")]
|
||||
#[error("Wisp transport: {0}")]
|
||||
WispTransport(String),
|
||||
#[error("Invalid Wisp transport")]
|
||||
InvalidWispTransport,
|
||||
|
|
|
@ -459,7 +459,7 @@ export function from_entries(entries){
|
|||
}
|
||||
|
||||
async function websocket_connect(url, protocols) {
|
||||
let wss = new WebSocketStreamPonyfill(url, { protocols: protocols });
|
||||
let wss = new (WebSocketStream ? WebSocketStream : WebSocketStreamPonyfill)(url, { protocols: protocols });
|
||||
let {readable, writable} = await wss.opened;
|
||||
return {read: readable, write: writable};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue