mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Revert "Preselect interface subnet mask for carp interfaces"
This was not a good change, it just consider ipv4, and it doesn't
respect the previous selected value. Revert it now and think on a better
solution later.
Fixes #2829
This reverts commit d94eb90446.
This commit is contained in:
parent
1f56ce5866
commit
ebbfc4b771
@ -297,15 +297,6 @@ function enable_change() {
|
||||
case "proxyarp": set_note(proxyarpnote); break;
|
||||
default: set_note(undefined);
|
||||
}
|
||||
interface_change();
|
||||
}
|
||||
|
||||
function interface_change() {
|
||||
if (get_radio_value(document.iform.mode) == "carp") {
|
||||
var ifname = document.iform.interface.options[document.iform.interface.selectedIndex].value + "_subnet";
|
||||
document.iform.subnet_bits.value = document.getElementById(ifname).value;
|
||||
}
|
||||
|
||||
typesel_change();
|
||||
}
|
||||
|
||||
@ -368,7 +359,7 @@ function typesel_change() {
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Interface");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="interface" class="formselect" onclick="interface_change()">
|
||||
<select name="interface" class="formselect">
|
||||
<?php
|
||||
$interfaces = get_configured_interface_with_descr(false, true);
|
||||
$carplist = get_configured_carp_interface_list();
|
||||
@ -382,10 +373,6 @@ function typesel_change() {
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($interfaces as $iface => $ifacename)
|
||||
print '<input id="' . $iface . '_subnet" type="hidden" value="' . get_interface_subnet($iface) . '">' . "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td valign="top" class="vncellreq"><?=gettext("IP Address(es)");?></td>
|
||||
<td class="vtable">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user