No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
utils/listFile.js
|
|
@ -24,8 +24,6 @@ function appendToList(domain, outPort, inPort) { |
|
|
|
"inPort": inPort |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
jsonFile = {} |
|
|
|
|
|
|
|
if (fs.existsSync(listFilePath)) { |
|
|
|
jsonFile = fs.readFileSync(listFilePath); |
|
|
@ -42,7 +40,6 @@ function appendToList(domain, outPort, inPort) { |
|
|
|
jsonFile = beautifyJSON(jsonFile, null, 2, 30); |
|
|
|
} |
|
|
|
else { |
|
|
|
jsonFile = {} |
|
|
|
jsonFile[domain] = domBlock; |
|
|
|
jsonFile = beautifyJSON(jsonFile); |
|
|
|
} |
|
|
@ -50,4 +47,4 @@ function appendToList(domain, outPort, inPort) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
module.exports = appendToList; |
|
|
|
module.exports = appendToList; |
|
|
|