diff options
author | Robert Nelson <robertn@the-nelsons.org> | 2015-03-22 16:28:33 -0700 |
---|---|---|
committer | Robert Nelson <robertn@the-nelsons.org> | 2015-03-22 16:28:33 -0700 |
commit | 6fdf663b0f7e35c1025885d7a3af441e1f41b72c (patch) | |
tree | d6c48a75d41eb717099efe01df42f7311bab02e8 /usr | |
parent | 90e5c03a5d84bfc1be079c21f9f903b52dcc0de8 (diff) | |
download | pfsense-6fdf663b0f7e35c1025885d7a3af441e1f41b72c.zip pfsense-6fdf663b0f7e35c1025885d7a3af441e1f41b72c.tar.gz |
Add option to not register IPv4 and/or IPv6 addresses.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/services_rfc2136_edit.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usr/local/www/services_rfc2136_edit.php b/usr/local/www/services_rfc2136_edit.php index 523042c..aeb20a6 100644 --- a/usr/local/www/services_rfc2136_edit.php +++ b/usr/local/www/services_rfc2136_edit.php @@ -60,6 +60,8 @@ if (isset($id) && isset($a_rfc2136[$id])) { $pconfig['interface'] = $a_rfc2136[$id]['interface']; $pconfig['usetcp'] = isset($a_rfc2136[$id]['usetcp']); $pconfig['usepublicip'] = isset($a_rfc2136[$id]['usepublicip']); + $pconfig['ignoreipv4'] = isset($a_rfc2136[$id]['ignoreipv4']); + $pconfig['ignoreipv6'] = isset($a_rfc2136[$id]['ignoreipv6']); $pconfig['descr'] = $a_rfc2136[$id]['descr']; } @@ -95,6 +97,8 @@ if ($_POST) { $rfc2136['server'] = $_POST['server']; $rfc2136['usetcp'] = $_POST['usetcp'] ? true : false; $rfc2136['usepublicip'] = $_POST['usepublicip'] ? true : false; + $rfc2136['ignoreipv4'] = $_POST['ignoreipv4'] ? true : false; + $rfc2136['ignoreipv6'] = $_POST['ignoreipv6'] ? true : false; $rfc2136['interface'] = $_POST['interface']; $rfc2136['descr'] = $_POST['descr']; @@ -204,6 +208,20 @@ include("head.inc"); <strong><?=gettext("If the interface IP is private, attempt to fetch and use the public IP instead.");?></strong> </td> </tr> + <tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Ignore IPv4 address");?></td> + <td width="78%" class="vtable"> + <input name="ignoreipv4" type="checkbox" id="ignoreipv4" value="<?=gettext("yes");?>" <?php if ($pconfig['ignoreipv4']) echo "checked=\"checked\""; ?> /> + <strong><?=gettext("Don't register an IPv4 address.");?></strong> + </td> + </tr> + <tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Ignore IPv6 address");?></td> + <td width="78%" class="vtable"> + <input name="ignoreipv6" type="checkbox" id="ignoreipv6" value="<?=gettext("yes");?>" <?php if ($pconfig['ignoreipv6']) echo "checked=\"checked\""; ?> /> + <strong><?=gettext("Don't register an IPv6 address.");?></strong> + </td> + </tr> <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Description");?></td> <td width="78%" class="vtable"> |