mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
Fix command output for rule-set match
This commit is contained in:
parent
b0aaa86806
commit
8a17043502
|
@ -12,6 +12,7 @@ import (
|
||||||
"github.com/sagernet/sing-box/option"
|
"github.com/sagernet/sing-box/option"
|
||||||
"github.com/sagernet/sing-box/route"
|
"github.com/sagernet/sing-box/route"
|
||||||
E "github.com/sagernet/sing/common/exceptions"
|
E "github.com/sagernet/sing/common/exceptions"
|
||||||
|
F "github.com/sagernet/sing/common/format"
|
||||||
"github.com/sagernet/sing/common/json"
|
"github.com/sagernet/sing/common/json"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
@ -79,7 +80,7 @@ func ruleSetMatch(sourcePath string, domain string) error {
|
||||||
if currentRule.Match(&adapter.InboundContext{
|
if currentRule.Match(&adapter.InboundContext{
|
||||||
Domain: domain,
|
Domain: domain,
|
||||||
}) {
|
}) {
|
||||||
println("match rules.[", i, "]: "+currentRule.String())
|
println(F.ToString("match rules.[", i, "]: ", currentRule))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue