From 43fad05dcdae3b723c53c226f8181fc5bd47223e Mon Sep 17 00:00:00 2001 From: Emo-Damage <75520940+Emo-Damage@users.noreply.github.com> Date: Thu, 22 Jun 2023 23:19:44 +0800 Subject: [PATCH] add doh for udp dns --- src/worker-vless.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker-vless.js b/src/worker-vless.js index d8c02ba..27bec48 100644 --- a/src/worker-vless.js +++ b/src/worker-vless.js @@ -87,7 +87,7 @@ async function vlessOverWSHandler(request) { // ws --> remote readableWebSocketStream.pipeTo(new WritableStream({ async write(chunk, controller) { - if (isDns) { + if (isDns && udpStreamWrite) { return udpStreamWrite(chunk); } if (remoteSocketWapper.value) {