mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-13 03:07:58 +03:00
Add fakeip support
This commit is contained in:
@@ -57,6 +57,10 @@ func (r *abstractDefaultRule) UpdateGeosite() error {
|
||||
}
|
||||
|
||||
func (r *abstractDefaultRule) Match(metadata *adapter.InboundContext) bool {
|
||||
if len(r.allItems) == 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
for _, item := range r.items {
|
||||
if !item.Match(metadata) {
|
||||
return r.invert
|
||||
|
||||
Reference in New Issue
Block a user