mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-24 17:18:25 +08:00
fix the vless issue..
This commit is contained in:
@@ -21,7 +21,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
|
|||||||
|
|
||||||
const upgradeHeader = context.request.headers.get('Upgrade');
|
const upgradeHeader = context.request.headers.get('Upgrade');
|
||||||
if (!upgradeHeader || upgradeHeader !== 'websocket') {
|
if (!upgradeHeader || upgradeHeader !== 'websocket') {
|
||||||
return new Response(`Expected Upgrade: websocket--uuid--${userID}`, {
|
return new Response(`Expected Upgrade: websocket`, {
|
||||||
status: 426,
|
status: 426,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user