diff options
Diffstat (limited to 'src/usr/local/www/interfaces.php')
-rw-r--r-- | src/usr/local/www/interfaces.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index de8f776..292cd00 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -317,6 +317,7 @@ switch ($wancfg['ipaddrv6']) { $pconfig['dhcp6usev4iface'] = isset($wancfg['dhcp6usev4iface']); $pconfig['dhcp6debug'] = isset($wancfg['dhcp6debug']); $pconfig['dhcp6withoutra'] = isset($wancfg['dhcp6withoutra']); + $pconfig['dhcp6norelease'] = isset($wancfg['dhcp6norelease']); break; case "6to4": $pconfig['type6'] = "6to4"; @@ -1014,6 +1015,7 @@ if ($_POST['apply']) { unset($wancfg['track6-interface']); unset($wancfg['track6-prefix-id']); unset($wancfg['dhcp6withoutra']); + unset($wancfg['dhcp6norelease']); unset($wancfg['prefix-6rd']); unset($wancfg['prefix-6rd-v4plen']); unset($wancfg['gateway-6rd']); @@ -1264,7 +1266,9 @@ if ($_POST['apply']) { if ($_POST['dhcp6withoutra'] == "yes") { $wancfg['dhcp6withoutra'] = true; } - + if ($_POST['dhcp6norelease'] == "yes") { + $wancfg['dhcp6norelease'] = true; + } if (!empty($_POST['adv_dhcp6_interface_statement_send_options'])) { $wancfg['adv_dhcp6_interface_statement_send_options'] = $_POST['adv_dhcp6_interface_statement_send_options']; } @@ -2172,7 +2176,12 @@ $section->addInput(new Form_Checkbox( 'Required by some ISPs, especially those not using PPPoE', $pconfig['dhcp6withoutra'] )); - +$section->addInput(new Form_Checkbox( + 'dhcp6norelease', + 'Do not allow PD/Address release', + 'dhcp6c will send a release to the ISP on exit, some ISPs then release the allocated address or prefix. This option prevents that signal ever being sent', + $pconfig['dhcp6norelease'] +)); $section->addInput(new Form_Input( 'adv_dhcp6_config_file_override_path', 'Configuration File Override', |