mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-26 06:09: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" {
|
if r["action"] == "block" {
|
||||||
ruleListItem := api.DetectRule{
|
ruleListItem := api.DetectRule{
|
||||||
ID: i,
|
ID: i,
|
||||||
Pattern: regexp.MustCompile(r["match"].(string)),
|
Pattern: regexp.MustCompile(strings.TrimPrefix(r["match"].(string), "regexp:")),
|
||||||
}
|
}
|
||||||
ruleList = append(ruleList, ruleListItem)
|
ruleList = append(ruleList, ruleListItem)
|
||||||
}
|
}
|
||||||
|
@ -535,7 +535,7 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
|
|||||||
}
|
}
|
||||||
|
|
||||||
if handler == nil {
|
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
|
// If there is no outbound with tag as same as the inbound tag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user