add doh for udp dns

This commit is contained in:
Emo-Damage 2023-06-22 23:19:44 +08:00
parent c15aa52ffc
commit 43fad05dcd

View File

@ -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) {