Update worker.js

This commit is contained in:
CMLiussss
2023-12-28 23:44:52 +08:00
committed by GitHub
parent 188346dcdc
commit 64c072a475

View File

@@ -32,7 +32,7 @@ export default {
*/
async fetch(request, env, ctx) {
try {
const userAgent = request.headers.get('User-Agent');
const userAgent = request.headers.get('User-Agent').toLowerCase();
userID = env.UUID || userID;
proxyIP = env.PROXYIP || proxyIP;
socks5Address = env.SOCKS5 || socks5Address;