mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-27 08:11:48 +00:00
fix: require full valid browser dialer URL for http scheme
Agent-Logs-Url: https://github.com/XTLS/Xray-core/sessions/de6da8b1-0d9b-4d56-a5a2-d0b06edc2965 Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3004e1e399
commit
f1f0d5970a
@@ -57,8 +57,8 @@ func CheckLegacyEnv() error {
|
||||
}
|
||||
|
||||
func IsBrowserDialerProxy(raw string) bool {
|
||||
parsed, err := url.Parse(raw)
|
||||
return err == nil && strings.EqualFold(parsed.Scheme, "http")
|
||||
_, _, ok := parseBrowserDialerAddress(raw)
|
||||
return ok
|
||||
}
|
||||
|
||||
func BeginCollectingDialerProxyURLs() error {
|
||||
|
||||
Reference in New Issue
Block a user