fix: 修复 VMess URI IPv6 格式
Some checks are pending
build / build (push) Waiting to run

This commit is contained in:
xream
2025-03-13 19:26:41 +08:00
parent 47307716b2
commit 1faa3fb793
2 changed files with 6 additions and 2 deletions

View File

@@ -23,7 +23,11 @@ export default function URI_Producer() {
) {
delete proxy.tls;
}
if (proxy.server && isIPv6(proxy.server)) {
if (
!['vmess'].includes(proxy.type) &&
proxy.server &&
isIPv6(proxy.server)
) {
proxy.server = `[${proxy.server}]`;
}
switch (proxy.type) {