Project

General

Profile

« Previous | Next » 

Revision ba2500cf

Added by Ralph Haussmann almost 8 years ago

Improve log output when ip_change_kill_states is set.

(cherry picked from commit a84da2286cc5353b5ce7161aa3d59ccd43ae3868)

View differences:

src/etc/rc.newwanip
232 232
if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interfaces'][$interface]['ipaddr'])) {
233 233
	/* IP changed, kill states accordingly */
234 234
	if ($curwanip != $oldip) {
235
		log_error("IP has changed, killing states on former IP $oldip.");
236
		pfSense_kill_states($oldip);
237 235
		if (isset($config['system']['ip_change_kill_states'])) {
238
			/* hidden config option to wipe all states if needed */
239
			log_error("Killing all states post-IP change.");
236
			log_error("IP has changed, killing all states (ip_change_kill_states is set).");
237
			pfSense_kill_states($oldip);
240 238
			filter_flush_state_table();
239
		} else {
240
			log_error("IP has changed, killing states on former IP $oldip.");
241
			pfSense_kill_states($oldip);
241 242
		}
242 243
	}
243 244

  

Also available in: Unified diff