mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Clean up leftover code not needed for anything.
This commit is contained in:
parent
b0d6223f89
commit
ca1a3fc230
@ -118,17 +118,11 @@ if ($_POST) {
|
||||
$ip['bw_up'] = $_POST['bw_up'];
|
||||
if ($_POST['bw_down'])
|
||||
$ip['bw_down'] = $_POST['bw_down'];
|
||||
if (isset($id) && $a_allowedhostnames[$id]) {
|
||||
$oldip = $a_allowedhostnames[$id]['hostname'];
|
||||
if (!empty($a_allowedhostnames[$id]['sn']))
|
||||
$oldip .= "/{$a_allowedhostnames[$id]['sn']}";
|
||||
if (isset($id) && $a_allowedhostnames[$id])
|
||||
$a_allowedhostnames[$id] = $ip;
|
||||
} else {
|
||||
$oldip = $ip['hostname'];
|
||||
if (!empty($$ip['sn']))
|
||||
$oldip .= "/{$$ip['sn']}";
|
||||
else
|
||||
$a_allowedhostnames[] = $ip;
|
||||
}
|
||||
|
||||
allowedhostnames_sort();
|
||||
|
||||
write_config();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user