Revision 461eac09
Added by Chris Buechler over 10 years ago
etc/rc.newwanip | ||
---|---|---|
186 | 186 |
*/ |
187 | 187 |
if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interfaces'][$interface]['ipaddr'])) { |
188 | 188 |
/* option to flush state table on IP change */ |
189 |
if (isset($config['system']['ip_change_kill_states'])) { |
|
190 |
log_error("Killing all states post-IP change."); |
|
191 |
filter_flush_state_table(); |
|
189 |
if ($curwanip != $oldip) { |
|
190 |
if (isset($config['system']['ip_change_kill_states'])) { |
|
191 |
log_error("Killing all states post-IP change."); |
|
192 |
filter_flush_state_table(); |
|
193 |
} |
|
192 | 194 |
} |
193 | 195 |
|
194 | 196 |
/* reconfigure static routes (kernel may have deleted them) */ |
Also available in: Unified diff
only kill all states if the IP changed. ticket #1629