bypatrol wisp detector bypass 9000 working 2024

This commit is contained in:
Toshit Chawda 2024-10-09 22:18:04 -07:00
parent 7535ef8f48
commit 7c9605474d
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 47 additions and 50 deletions

View file

@ -78,10 +78,7 @@ pub enum EpoxyError {
#[error("Webpki: {0:?} ({0})")] #[error("Webpki: {0:?} ({0})")]
Webpki(#[from] webpki::Error), Webpki(#[from] webpki::Error),
#[error("Wisp WebSocket failed to connect")] #[error("Wisp transport: {0}")]
WebSocketConnectFailed,
#[error("Custom wisp transport: {0}")]
WispTransport(String), WispTransport(String),
#[error("Invalid Wisp transport")] #[error("Invalid Wisp transport")]
InvalidWispTransport, InvalidWispTransport,

View file

@ -459,7 +459,7 @@ export function from_entries(entries){
} }
async function websocket_connect(url, protocols) { 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; let {readable, writable} = await wss.opened;
return {read: readable, write: writable}; return {read: readable, write: writable};
} }