Add fakeip support

This commit is contained in:
世界
2023-03-25 12:03:23 +08:00
parent aa94cfb876
commit 9bca5a517f
28 changed files with 689 additions and 62 deletions

View File

@@ -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