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

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

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)
}