Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Update worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahid Farid committed Mar 31, 2023
1 parent d70515b commit 4422d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default {
ipList = {...cleanIPPerOperator}
Object.keys(ipList).forEach((k) => !ipList[k].length && delete ipList[k]);
}
if (!Object.keys(ipList)) {
if (!Object.keys(ipList).length) {
ipList = {COM: ['']}
}

Expand All @@ -155,7 +155,7 @@ export default {
finalConfigList = finalConfigList.concat(getMultipleRandomElements(ssConfigList, maxPerType))
}

return new Response(b2a(finalConfigList.join("\n")));
return new Response(btoa(finalConfigList.join("\n")));
} else {
var url = new URL(request.url)
var newUrl = new URL("https://" + url.pathname.replace(/^\/|\/$/g, ""))
Expand Down

0 comments on commit 4422d1e

Please sign in to comment.