mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Delete the old mac when action changes, not the current one
This commit is contained in:
parent
0d33f1fc6f
commit
a7c00d8dba
@ -142,7 +142,7 @@ if ($_POST) {
|
||||
write_config();
|
||||
|
||||
if (isset($config['captiveportal'][$cpzone]['enable'])) {
|
||||
$rules = captiveportal_passthrumac_delete_entry($mac);
|
||||
$rules = captiveportal_passthrumac_delete_entry($oldmac);
|
||||
$rules .= captiveportal_passthrumac_configure_entry($mac);
|
||||
$uniqid = uniqid("{$cpzone}_macedit");
|
||||
file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user