1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2026-04-26 12:51:52 +00:00

fix: use udp config

This commit is contained in:
2026-01-03 22:43:31 +08:00
parent 9725a05c35
commit 2d863752b1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func (p *SocksParser) Parse(config ParseConfig, proxy string) (P.Proxy, error) {
UserName: username,
Password: password,
TLS: tls == "true",
UDP: udp == "true",
UDP: udp == "true" || config.UseUDP,
},
}, nil
}
+1 -1
View File
@@ -66,7 +66,7 @@ func (p *TrojanParser) Parse(config ParseConfig, proxy string) (P.Proxy, error)
Port: P.IntOrString(port),
Password: password,
Network: network,
UDP: udp == "true",
UDP: udp == "true" || config.UseUDP,
SkipCertVerify: insecureBool,
}
+1 -1
View File
@@ -69,7 +69,7 @@ func (p *VlessParser) Parse(config ParseConfig, proxy string) (P.Proxy, error) {
Port: P.IntOrString(port),
UUID: uuid,
Flow: flow,
UDP: udp == "true",
UDP: udp == "true" || config.UseUDP,
SkipCertVerify: insecureBool,
}