Bug #14949 » 5eb325e0def04241684b4d2c9583f8ca9d8bc05e.patch
| src/usr/local/www/interfaces.php | ||
|---|---|---|
|
$is_vlan = (bool) interface_is_vlan($realifname);
|
||
|
$is_parent = !$is_vlan;
|
||
|
init_config_arr(array('interfaces', $if));
|
||
|
$wancfg = &$config['interfaces'][$if];
|
||
|
$old_wancfg = $wancfg;
|
||
|
$old_wancfg['realif'] = get_real_interface($if);
|
||
|
$old_ppps = $a_ppps;
|
||
|
// Populate page descr if it does not exist.
|
||
|
if ((strtolower($if) == "wan") &&
|
||
|
empty(array_get_path($wancfg, 'descr'))) {
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
config_set_path('ppps/ppp', $a_ppps);
|
||
|
config_set_path('gateways/gateway_item', $a_gateways);
|
||
|
config_set_path("interfaces/{$if}", $wancfg);
|
||
|
write_config("Interfaces settings changed");
|
||
|
if ($_POST['gatewayip4']) {
|
||
- « Previous
- 1
- 2
- 3
- Next »