mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-24 21:29:50 +00:00
fix: newV2board rule regexp pattern
This commit is contained in:
parent
a6dbf757e9
commit
9ef39925fd
@ -255,7 +255,7 @@ func (c *APIClient) GetNodeRule() (*[]api.DetectRule, error) {
|
||||
if r["action"] == "block" {
|
||||
ruleListItem := api.DetectRule{
|
||||
ID: i,
|
||||
Pattern: regexp.MustCompile(r["match"].(string)),
|
||||
Pattern: regexp.MustCompile(strings.TrimPrefix(r["match"].(string), "regexp:")),
|
||||
}
|
||||
ruleList = append(ruleList, ruleListItem)
|
||||
}
|
||||
|
@ -535,7 +535,7 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
|
||||
}
|
||||
|
||||
if handler == nil {
|
||||
handler = d.ohm.GetHandler(inTag) // Default outbound hander tag should be as same as the inbound tag
|
||||
handler = d.ohm.GetHandler(inTag) // Default outbound handler tag should be as same as the inbound tag
|
||||
}
|
||||
|
||||
// If there is no outbound with tag as same as the inbound tag
|
||||
|
Loading…
x
Reference in New Issue
Block a user