bugfix: 读取内置 domestic-domain-allowlist.txt 失败的问题修复

This commit is contained in:
王良
2024-10-09 17:17:36 +08:00
parent 3a310eb8e1
commit 1844895318
4 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ function createPacClient (pacFilePath) {
function readFile (location) {
try {
log.info('pac root dir:', path.resolve('./'))
log.info('pac location:', location)
const filePath = path.resolve(location)
log.info('read pac path:', filePath)
return fs.readFileSync(location).toString()