diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-10-30 13:15:41 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-10-30 13:15:41 -0500 |
commit | 461eac099b80692b1feb4002357da6a61f4a3aff (patch) | |
tree | 5cab279826ab82c6ca296a38ef5a6118aa6e1cc6 /etc | |
parent | 5274102ea43536827826efd98a7d97dbbeb882a9 (diff) | |
download | pfsense-461eac099b80692b1feb4002357da6a61f4a3aff.zip pfsense-461eac099b80692b1feb4002357da6a61f4a3aff.tar.gz |
only kill all states if the IP changed. ticket #1629
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index ce10394..b903210 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -186,9 +186,11 @@ if(is_array($config['gifs']['gif'])){ */ if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interfaces'][$interface]['ipaddr'])) { /* option to flush state table on IP change */ - if (isset($config['system']['ip_change_kill_states'])) { - log_error("Killing all states post-IP change."); - filter_flush_state_table(); + if ($curwanip != $oldip) { + if (isset($config['system']['ip_change_kill_states'])) { + log_error("Killing all states post-IP change."); + filter_flush_state_table(); + } } /* reconfigure static routes (kernel may have deleted them) */ |