mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix: panic when import some incorrect ssr subscriptions
This commit is contained in:
1 parent
5cd8fea690
commit
ad718c81f6
4 files changed
+5
-10
No files matched your search
@@ -1,6 +1,4 @@
|
||||
[](https://hub.docker.com/r/mzz2017/v2raya) [](https://travis-ci.org/mzz2017/V2RayA) [](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
|
||||
# V2RayA
|
||||
# V2RayA [](https://hub.docker.com/r/mzz2017/v2raya) [](https://travis-ci.org/mzz2017/V2RayA) [](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
|
||||
[**English**](https://github.com/mzz2017/V2RayA/blob/master/README.md) [**简体中文**](https://github.com/mzz2017/V2RayA/blob/master/README_zh.md)
|
||||
|
||||
|
||||
+1
-3
@@ -1,6 +1,4 @@
|
||||
[](https://hub.docker.com/r/mzz2017/v2raya) [](https://travis-ci.org/mzz2017/V2RayA) [](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
|
||||
# V2RayA
|
||||
# V2RayA [](https://hub.docker.com/r/mzz2017/v2raya) [](https://travis-ci.org/mzz2017/V2RayA) [](https://app.netlify.com/sites/xenodochial-jepsen-122e9b/deploys)
|
||||
|
||||
[**English**](https://github.com/mzz2017/V2RayA/blob/master/README.md) [**简体中文**](https://github.com/mzz2017/V2RayA/blob/master/README_zh.md)
|
||||
|
||||
|
||||
@@ -190,6 +190,8 @@ func ResolveSSRURL(u string) (data *nodeData.NodeData, err error) {
|
||||
//如果长度多于6,说明host中包含字符:,重新合并前几个分组到host去
|
||||
pre[len(pre)-6] = strings.Join(pre[:len(pre)-5], ":")
|
||||
pre = pre[len(pre)-6:]
|
||||
} else if len(pre) < 6 {
|
||||
return v, false
|
||||
}
|
||||
q, err := url.ParseQuery(arr[1])
|
||||
if err != nil {
|
||||
|
||||
@@ -27,10 +27,7 @@ func ResolveSubscriptionWithClient(source string, client *http.Client) (infos []
|
||||
_, _ = buf.ReadFrom(res.Body)
|
||||
defer res.Body.Close()
|
||||
// base64解码, raw是多行vmess
|
||||
raw, err := tools.Base64StdDecode(buf.String())
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
raw, _ := tools.Base64StdDecode(buf.String())
|
||||
// 切分raw
|
||||
rows := strings.Split(strings.TrimSpace(raw), "\n")
|
||||
// 解析
|
||||
|
||||
Reference in new issue
Block a user