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:
Markson Pigeonzilla Plus committed 2026-09-12 17:34:06 +08:00
1 parent 4bc93252c2
commit 3fd0e88222
1 file changed
+1 -1
+1 -1
View File
@@ -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 {