From b3f31bf06b8507131b1c3a9e21359ad2dc9d97c3 Mon Sep 17 00:00:00 2001 From: thh1451 <119903652+thh1451@users.noreply.github.com> Date: Tue, 19 Mar 2024 00:01:19 +0800 Subject: [PATCH] Modify the way v2raysocks obtains methods and audits (#616) Co-authored-by: thank243 --- api/v2raysocks/v2raysocks.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/v2raysocks/v2raysocks.go b/api/v2raysocks/v2raysocks.go index 39dc35d..e7fe1c6 100644 --- a/api/v2raysocks/v2raysocks.go +++ b/api/v2raysocks/v2raysocks.go @@ -292,11 +292,7 @@ func (c *APIClient) ReportUserTraffic(userTraffic *[]api.UserTraffic) error { // GetNodeRule implements the API interface func (c *APIClient) GetNodeRule() (*[]api.DetectRule, error) { ruleList := c.LocalRuleList - if c.NodeType != "V2ray" { - return &ruleList, nil - } - // Only support the rule for v2ray // fix: reuse config response c.access.Lock() defer c.access.Unlock()