feature: windows的系统代理排除列表中,排除掉中国域名白名单,并提供自动更新中国域名白名单的功能

This commit is contained in:
王良
2024-09-27 18:23:08 +08:00
parent 6612f4d650
commit ad19c7a262
6 changed files with 1387 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ function createPacClient (pacFilePath) {
const getRules = function (pacFilePath) {
let text = readFile(pacFilePath)
if (text.indexOf('!---------------------EOF') === -1) {
if (text.indexOf('!---------------------EOF') < 0) {
text = Buffer.from(text, 'base64').toString()
}
const rules = []