fix rule unmarshal bug, change some error message, remove alterID support

This commit is contained in:
yuzuki999 committed 2022-10-10 08:59:00 +08:00
1 parent 5079a13c5d
commit 231678cc8d
9 files changed
+65 -75

No files matched your search

+1 -1
View File
@@ -242,7 +242,7 @@ func (c *Client) ParseV2rayNodeResponse(body []byte, notParseNode, parseRule boo
}
if parseRule {
c.RemoteRuleCache = []Rule{}
err := json.Unmarshal(node.V2ray.Routing.Rules, c.RemoteRuleCache)
err := json.Unmarshal(node.V2ray.Routing.Rules, &c.RemoteRuleCache)
if err != nil {
log.Println(err)
}