mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-31 00:14:21 +03:00
Add invert rule item
This commit is contained in:
@@ -107,6 +107,7 @@ type DefaultDNSRule struct {
|
||||
User Listable[string] `json:"user,omitempty"`
|
||||
UserID Listable[int32] `json:"user_id,omitempty"`
|
||||
Outbound Listable[string] `json:"outbound,omitempty"`
|
||||
Invert bool `json:"invert,omitempty"`
|
||||
Server string `json:"server,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -107,6 +107,7 @@ type DefaultRule struct {
|
||||
PackageName Listable[string] `json:"package_name,omitempty"`
|
||||
User Listable[string] `json:"user,omitempty"`
|
||||
UserID Listable[int32] `json:"user_id,omitempty"`
|
||||
Invert bool `json:"invert,omitempty"`
|
||||
Outbound string `json:"outbound,omitempty"`
|
||||
}
|
||||
|
||||
@@ -137,6 +138,7 @@ func (r DefaultRule) Equals(other DefaultRule) bool {
|
||||
common.ComparableSliceEquals(r.PackageName, other.PackageName) &&
|
||||
common.ComparableSliceEquals(r.User, other.User) &&
|
||||
common.ComparableSliceEquals(r.UserID, other.UserID) &&
|
||||
r.Invert == other.Invert &&
|
||||
r.Outbound == other.Outbound
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user