diff options
author | Erich Eckner <git@eckner.net> | 2019-04-09 14:32:39 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-04-09 14:32:39 +0200 |
commit | 0e09c136d1c320198abd58941185b141522a77de (patch) | |
tree | ce4de5fae7b543df5a1de869e59c3234cc04c386 | |
parent | dcf87bab819740f263f6024ac75e9d0c09967376 (diff) | |
download | ddns-0e09c136d1c320198abd58941185b141522a77de.tar.xz |
ddns.php: add non-$filter entries for non-matches
-rw-r--r-- | ddns.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -71,6 +71,8 @@ foreach ($filters as $filter) { if (preg_match('@' . $filter['regex'] . '@', $ip) == 1) $filterMatches[$i][] = $filter['name']; + else + $filterMatches[$i][] = 'non-' . $filter['name']; } $filterMatches[$i] = array_unique($filterMatches[$i]); } |