Fix: Update session var when saving cfg

This commit is contained in:
billz 2020-06-07 18:46:14 +01:00
parent e2c82168fb
commit 9fb59918cf
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status)
$cfg['BridgedEnable'] = $bridgedEnable;
$cfg['WifiManaged'] = $_POST['interface'];
write_php_ini($cfg, RASPI_CONFIG.'/hostapd.ini');
$_SESSION['client_iface'] = $_POST['interface'];
// Verify input
if (empty($_POST['ssid']) || strlen($_POST['ssid']) > 32) {