summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-04-14 09:20:49 +0200
committerErich Eckner <git@eckner.net>2021-04-14 09:20:49 +0200
commit617a2701531cd6ca75b780798496e7f6800fc3bb (patch)
tree70899ecc7dfe20b9cfb6b7696eaf2913c61c2548
parent18f0b70cdfcf5bc20a0d74ea08f5605c132082e2 (diff)
downloadddns-617a2701531cd6ca75b780798496e7f6800fc3bb.tar.xz
ddns.php: make $ips *really* an array()
-rw-r--r--ddns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ddns.php b/ddns.php
index 7437a9f..a1aa980 100644
--- a/ddns.php
+++ b/ddns.php
@@ -83,7 +83,7 @@
if (array_key_exists('address', $_GET))
$ips = explode(',', $_GET['address']);
else
- $ips[0] = 'auto';
+ $ips = array('auto');
foreach ($ips as $i => $ip)
if ($ip == 'auto')