summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-09 14:32:39 +0200
committerErich Eckner <git@eckner.net>2019-04-09 14:32:39 +0200
commit0e09c136d1c320198abd58941185b141522a77de (patch)
treece4de5fae7b543df5a1de869e59c3234cc04c386
parentdcf87bab819740f263f6024ac75e9d0c09967376 (diff)
downloadddns-0e09c136d1c320198abd58941185b141522a77de.tar.xz
ddns.php: add non-$filter entries for non-matches
-rw-r--r--ddns.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/ddns.php b/ddns.php
index 4245820..859937d 100644
--- a/ddns.php
+++ b/ddns.php
@@ -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]);
}