Fixed Clash TLS host bug

This commit is contained in:
Peng-YM 2020-10-20 17:45:21 +08:00
parent 0d1e0588c5
commit da71611d70
2 changed files with 2 additions and 2 deletions

View File

@ -759,7 +759,7 @@ function ProxyParser(targetPlatform) {
.replace(/:(?!\s)/g, ": ")
.replace(/\,\"/g, ', "')
.replace(/: {/g, ": {, ")
.replace(/, (host|path|tls|mux|skip)/g, ", $1")
.replace(/, (\"?host|path|tls|mux|skip\"?)/g, ", $1")
.replace(/{name: /g, '{name: "')
.replace(/, server:/g, '", server:')
.replace(/{|}/g, "")

File diff suppressed because one or more lines are too long