summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-10-30 13:15:41 -0500
committerChris Buechler <cmb@pfsense.org>2014-10-30 13:15:41 -0500
commit461eac099b80692b1feb4002357da6a61f4a3aff (patch)
tree5cab279826ab82c6ca296a38ef5a6118aa6e1cc6 /etc
parent5274102ea43536827826efd98a7d97dbbeb882a9 (diff)
downloadpfsense-461eac099b80692b1feb4002357da6a61f4a3aff.zip
pfsense-461eac099b80692b1feb4002357da6a61f4a3aff.tar.gz
only kill all states if the IP changed. ticket #1629
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.newwanip8
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) */
OpenPOWER on IntegriCloud