feat: 支持输出到 sing-box; 文件脚本支持 ` ; 脚本支持 ProxyUtils.yaml`

This commit is contained in:
xream
2024-01-13 10:28:07 +08:00
parent 5915416232
commit 3aacd26b79
11 changed files with 729 additions and 26 deletions

View File

@@ -22,10 +22,10 @@ async function getNodeInfo(req, res) {
const info = await $http
.get({
url: `http://ip-api.com/json/${encodeURIComponent(
proxy.server
`${proxy.server}`
.trim()
.replace(/^\[/, '')
.replace(/\]$/, '')
.replace(/\]$/, ''),
)}?lang=${lang}`,
headers: {
'User-Agent':