Skip to content

Commit

Permalink
interfaces: reload filter before reloading plugins for connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 22, 2017
1 parent 4e1c7d4 commit 50e53ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/etc/rc.newwanip
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ if (!is_ipaddr($cacheip) || $ip != $cacheip || !is_ipaddr($configip)) {

system_routing_configure($interface);
setup_gateways_monitor();
plugins_configure('vpn', false, array($interface));
plugins_configure('newwanip', false, array($interface));
rrd_configure();
filter_configure_sync();

if (is_ipaddr($ip)) {
@file_put_contents($cacheip_file, $ip);
}

plugins_configure('vpn', false, array($interface));
plugins_configure('newwanip', false, array($interface));
rrd_configure();
}
7 changes: 4 additions & 3 deletions src/etc/rc.newwanipv6
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,13 @@ if (!is_ipaddr($cacheip) || $ip != $cacheip || !is_ipaddr($configip)) {

system_routing_configure($interface);
setup_gateways_monitor();
plugins_configure('vpn', false, array($interface));
plugins_configure('newwanip', false, array($interface));
rrd_configure();
filter_configure_sync();

if (is_ipaddr($ip)) {
@file_put_contents($cacheip_file, $ip);
}

plugins_configure('vpn', false, array($interface));
plugins_configure('newwanip', false, array($interface));
rrd_configure();
}

0 comments on commit 50e53ab

Please sign in to comment.