diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-11-25 16:20:55 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-11-25 16:20:55 +0000 |
commit | e7bfa231022d005a5e2dc0751e067323124606f0 (patch) | |
tree | 7ab7fe8c2da19f7a3b8e8d7f51130bcfa808ba85 /usr/local/www | |
parent | c44d3cf7eb12938de31936feee935644458dafae (diff) | |
download | pfsense-e7bfa231022d005a5e2dc0751e067323124606f0.zip pfsense-e7bfa231022d005a5e2dc0751e067323124606f0.tar.gz |
Resolves #174. If the interface reassignment changes reload the config for the interface.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 89f8631..5132d80 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -183,6 +183,10 @@ if ($_POST['apply']) { (substr($ifname, 0, 3) == 'opt')) { if (!is_array($ifport)) { + $reloadif = false; + if (!empty($config['interfaces']['if']) && $config['interfaces']['if'] <> $ifport) + /* Mark this to be reconfigured in any case. */ + $reloadif = true; $config['interfaces'][$ifname]['if'] = $ifport; if (preg_match('/^ppp_(.+)$/', $ifport, $matches)) { $config['interfaces'][$ifname]['pointtopoint'] = true; @@ -200,6 +204,9 @@ if ($_POST['apply']) { /* make sure there is a descr for all interfaces */ if (!isset($config['interfaces'][$ifname]['descr'])) $config['interfaces'][$ifname]['descr'] = strtoupper($ifname); + if ($reloadif == true) + /* Reload all for the interface. */ + interface_configure($ifname, true); } } } |