Refactor rules

This commit is contained in:
世界 2023-06-07 20:28:21 +08:00
parent 52b776b561
commit aa94cfb876
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
39 changed files with 816 additions and 918 deletions

View file

@ -21,7 +21,7 @@ func TestMergeJSON(t *testing.T) {
{
Type: C.RuleTypeDefault,
DefaultOptions: option.DefaultRule{
Network: N.NetworkTCP,
Network: []string{N.NetworkTCP},
Outbound: "direct",
},
},
@ -42,7 +42,7 @@ func TestMergeJSON(t *testing.T) {
{
Type: C.RuleTypeDefault,
DefaultOptions: option.DefaultRule{
Network: N.NetworkUDP,
Network: []string{N.NetworkUDP},
Outbound: "direct",
},
},