Bug #1629 » states-bug.patch
| etc/rc.newwanip | ||
|---|---|---|
|
* could be failing back in which case we need to switch IPs back anyhow.
|
||
|
*/
|
||
|
if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interfaces'][$interface]['ipaddr'])) {
|
||
|
/*
|
||
|
* Some services (e.g. dyndns, see ticket #4066) depend on
|
||
|
* filter_configure() to be called before, otherwise pass out
|
||
|
* route-to rules have the old ip set in 'from' and connection
|
||
|
* do not go through correct link
|
||
|
*/
|
||
|
filter_configure_sync();
|
||
|
/* IP changed, kill states accordingly */
|
||
|
if ($curwanip != $oldip) {
|
||
|
log_error("IP has changed, killing states on former IP $oldip.");
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
/*
|
||
|
* Some services (e.g. dyndns, see ticket #4066) depend on
|
||
|
* filter_configure() to be called before, otherwise pass out
|
||
|
* route-to rules have the old ip set in 'from' and connection
|
||
|
* do not go through correct link
|
||
|
*/
|
||
|
filter_configure_sync();
|
||
|
/* reconfigure static routes (kernel may have deleted them) */
|
||
|
system_routing_configure($interface);
|
||
- « Previous
- 1
- 2
- 3
- Next »