feat: 全部是 WireGuard 节点的订阅, 支持输出为 Surge 模块

This commit is contained in:
xream
2024-04-25 16:55:32 +08:00
parent 6f7da57e3a
commit 8cbb4492be
3 changed files with 17 additions and 6 deletions

View File

@@ -762,8 +762,8 @@ function wireguard(proxy) {
}
const result = new Result(proxy);
result.append(`# WireGuard Proxy ${proxy.name}
${proxy.name}=wireguard`);
result.append(`# > WireGuard Proxy ${proxy.name}
# ${proxy.name}=wireguard`);
proxy['section-name'] = getIfNotBlank(proxy['section-name'], proxy.name);
@@ -821,7 +821,7 @@ ${proxy.name}=wireguard`);
);
result.append(`
# WireGuard Section ${proxy.name}
# > WireGuard Section ${proxy.name}
[WireGuard ${proxy['section-name']}]
private-key = ${proxy['private-key']}`);