Skip to content

Commit

Permalink
Modify the way v2raysocks obtains methods and audits (#616)
Browse files Browse the repository at this point in the history
Co-authored-by: thank243 <[email protected]>
  • Loading branch information
theresaarcher and Septrum101 authored Mar 18, 2024
1 parent 0010a87 commit b3f31bf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api/v2raysocks/v2raysocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b3f31bf

Please sign in to comment.