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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user