diff options
author | Robert Nelson <robertn@the-nelsons.org> | 2015-03-23 11:20:41 -0700 |
---|---|---|
committer | Robert Nelson <robertn@the-nelsons.org> | 2015-03-23 11:20:41 -0700 |
commit | 52cbfd455ab209a918817501cda618ec3b1886d6 (patch) | |
tree | e3169c210fbe6907176dcbcc3977da9cf75f74fc /usr/local | |
parent | 6fdf663b0f7e35c1025885d7a3af441e1f41b72c (diff) | |
download | pfsense-52cbfd455ab209a918817501cda618ec3b1886d6.zip pfsense-52cbfd455ab209a918817501cda618ec3b1886d6.tar.gz |
Use radio buttons to select between IPv4, IPv6 or Both.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/services_rfc2136_edit.php | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/usr/local/www/services_rfc2136_edit.php b/usr/local/www/services_rfc2136_edit.php index aeb20a6..6bb0ebe 100644 --- a/usr/local/www/services_rfc2136_edit.php +++ b/usr/local/www/services_rfc2136_edit.php @@ -60,8 +60,9 @@ 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['addresses'] = $a_rfc2136[$id]['addresses']; + if (!$pconfig['addresses']) + $pconfig['addresses'] = "both"; $pconfig['descr'] = $a_rfc2136[$id]['descr']; } @@ -97,8 +98,7 @@ 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['addresses'] = $_POST['addresses']; $rfc2136['interface'] = $_POST['interface']; $rfc2136['descr'] = $_POST['descr']; @@ -208,20 +208,14 @@ 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 valign="top" class="vncellreq"><?=gettext("Address Registration");?> </td> + <td class="vtable"> + <input name="addresses" type="radio" value="ipv4" <?php if ($pconfig['addresses'] == "ipv4") echo "checked=\"checked\""; ?> /> <?=gettext("IPv4");?> + <input name="addresses" type="radio" value="ipv6" <?php if ($pconfig['addresses'] == "ipv6") echo "checked=\"checked\""; ?> /> <?=gettext("IPv6");?> + <input name="addresses" type="radio" value="both" <?php if ($pconfig['addresses'] == "both") echo "checked=\"checked\""; ?> /> <?=gettext("Both");?> + </td> + </tr> <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Description");?></td> <td width="78%" class="vtable"> |