diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-15 20:58:31 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-15 20:58:31 +0100 |
commit | eef9a15d3446333ebed67a720eed8b85041779e3 (patch) | |
tree | 5cc2cd45e5fdc2b98294a6a09d65e337239eba70 /usr/local/www/firewall_virtual_ip_edit.php | |
parent | dc41ccaf3c0ab653daf12580fa30ab7d938667d6 (diff) | |
download | pfsense-eef9a15d3446333ebed67a720eed8b85041779e3.zip pfsense-eef9a15d3446333ebed67a720eed8b85041779e3.tar.gz |
Ticket #3997 Put a uniq identifier on the carp settings.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rw-r--r-- | usr/local/www/firewall_virtual_ip_edit.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index a26f61a..af28d9d 100644 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -95,10 +95,12 @@ if (isset($id) && $a_vip[$id]) { $pconfig['descr'] = $a_vip[$id]['descr']; $pconfig['type'] = $a_vip[$id]['type']; $pconfig['interface'] = $a_vip[$id]['interface']; + $pconfig['uniqid'] = $a_vip[$id]['interface']; } else { $lastvhid = find_last_used_vhid(); $lastvhid++; $pconfig['vhid'] = $lastvhid; + $pconfig['uniqid'] = uniqid(); } if ($_POST) { @@ -240,6 +242,7 @@ if ($_POST) { /* CARP specific fields */ if ($_POST['mode'] === "carp") { $vipent['vhid'] = $_POST['vhid']; + $vipent['vhid'] = $_POST['uinqid']; $vipent['advskew'] = $_POST['advskew']; $vipent['advbase'] = $_POST['advbase']; $vipent['password'] = $_POST['password']; @@ -511,6 +514,7 @@ function typesel_change() { <?php if (isset($id) && $a_vip[$id]): ?> <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> <?php endif; ?> + <input name="uniqid" type="hidden" value="<?=$pconfig['uniqid'];?>" /> </td> </tr> <tr> |