diff options
author | Warren Baker <warren@decoy.co.za> | 2013-06-13 11:34:34 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2013-06-13 11:34:34 +0200 |
commit | d875d5fc73d74403488288e65cdd7a0befac6939 (patch) | |
tree | 090a912432ec835218fc78714d678d87aac87793 /config/unbound/unbound_acls.php | |
parent | da4fc3d85a8e3011adcdab19ebaa27074e79ee9e (diff) | |
download | pfsense-packages-d875d5fc73d74403488288e65cdd7a0befac6939.tar.gz pfsense-packages-d875d5fc73d74403488288e65cdd7a0befac6939.tar.bz2 pfsense-packages-d875d5fc73d74403488288e65cdd7a0befac6939.zip |
only display 128 subnet if v6 function is available
Diffstat (limited to 'config/unbound/unbound_acls.php')
-rw-r--r-- | config/unbound/unbound_acls.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/unbound/unbound_acls.php b/config/unbound/unbound_acls.php index 721d3adb..59738aab 100644 --- a/config/unbound/unbound_acls.php +++ b/config/unbound/unbound_acls.php @@ -139,7 +139,8 @@ include("head.inc"); <script type="text/javascript"> function mask_field(fieldname, fieldsize, n) { return '<select name="' + fieldname + n + '" class="formselect" id="' + fieldname + n + '"><?php - for ($i = 128; $i >= 0; $i--) { + $start = 24; if (function_exists("is_ipaddrv6")) $start = "128"; + for ($i = $start; $i >= 0; $i--) { echo "<option value=\"$i\">$i</option>"; } ?></select>'; |