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

This commit is contained in:
王良
2024-09-27 22:35:47 +08:00
committed by GitHub
parent 1af4bfe6b8
commit 6653f7613e
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 = []