1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2026-01-18 06:17:24 +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

View File

@@ -83,7 +83,7 @@ func (p *SocksParser) Parse(config ParseConfig, proxy string) (P.Proxy, error) {
UserName: username, UserName: username,
Password: password, Password: password,
TLS: tls == "true", TLS: tls == "true",
UDP: udp == "true", UDP: udp == "true" || config.UseUDP,
}, },
}, nil }, nil
} }

View File

@@ -66,7 +66,7 @@ func (p *TrojanParser) Parse(config ParseConfig, proxy string) (P.Proxy, error)
Port: P.IntOrString(port), Port: P.IntOrString(port),
Password: password, Password: password,
Network: network, Network: network,
UDP: udp == "true", UDP: udp == "true" || config.UseUDP,
SkipCertVerify: insecureBool, SkipCertVerify: insecureBool,
} }

View File

@@ -69,7 +69,7 @@ func (p *VlessParser) Parse(config ParseConfig, proxy string) (P.Proxy, error) {
Port: P.IntOrString(port), Port: P.IntOrString(port),
UUID: uuid, UUID: uuid,
Flow: flow, Flow: flow,
UDP: udp == "true", UDP: udp == "true" || config.UseUDP,
SkipCertVerify: insecureBool, SkipCertVerify: insecureBool,
} }