mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix(import): treat http(s) links as server links instead of subscriptions
Add 'http' and 'https' to supported prefixes in Import() so HTTP/HTTPS links are recognized as server links rather than subscriptions. Prevents single http://... nodes from being stored as subscriptions.
This commit is contained in:
1 parent
4bc93252c2
commit
3fd0e88222
1 file changed
+1
-1
@@ -43,7 +43,7 @@ func Import(url string, which *configure.Which) (err error) {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
supportedPrefix := []string{"vmess", "vless", "ss", "ssr", "trojan", "trojan-go", "http-proxy",
|
||||
supportedPrefix := []string{"vmess", "vless", "ss", "ssr", "trojan", "trojan-go", "http", "https", "http-proxy",
|
||||
"https-proxy", "socks5", "http2", "juicity", "tuic", "hysteria", "hysteria2", "anytls",
|
||||
"shadowsocks", "shadowsocksr", "hy1", "hy2", "mcore", "mcp", "plugin", "wireguard"}
|
||||
for i := range supportedPrefix {
|
||||
|
||||
Reference in new issue
Block a user