Skip to content

Commit

Permalink
add doh for udp dns
Browse files Browse the repository at this point in the history
  • Loading branch information
Emo-Damage committed Jun 22, 2023
1 parent c15aa52 commit 43fad05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker-vless.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 43fad05

Please sign in to comment.