Skip to content

Commit

Permalink
remove dohurl
Browse files Browse the repository at this point in the history
  • Loading branch information
6Kmfi6HP committed Sep 12, 2024
1 parent db8fdbb commit 9dee84f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ let enableSocks = false;
export default {
/**
* @param {import("@cloudflare/workers-types").Request} request
* @param {{UUID: string, PROXYIP: string, DNS_RESOLVER_URL: string, SOCKS5: string, SOCKS5_RELAY: string}} env
* @param {{UUID: string, PROXYIP: string, SOCKS5: string, SOCKS5_RELAY: string}} env
* @param {import("@cloudflare/workers-types").ExecutionContext} _ctx
* @returns {Promise<Response>}
*/
async fetch(request, env, _ctx) {
try {
const { UUID, PROXYIP, DNS_RESOLVER_URL, SOCKS5, SOCKS5_RELAY } = env;
const { UUID, PROXYIP, SOCKS5, SOCKS5_RELAY } = env;
userID = UUID || userID;
proxyIP = PROXYIP || proxyIP;
dohURL = DNS_RESOLVER_URL || dohURL;
socks5Address = SOCKS5 || socks5Address;
socks5Relay = SOCKS5_RELAY || socks5Relay;

Expand Down

0 comments on commit 9dee84f

Please sign in to comment.