Project

General

Profile

« Previous | Next » 

Revision 1ac4e6ae

Added by Chris Buechler over 9 years ago

Add config upgrade code to remove L7 config pieces, and file a notice where found. Ticket #5508

View differences:

src/etc/inc/globals.inc
99 99
	"disablecrashreporter" => false,
100 100
	"crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php",
101 101
	"debug" => false,
102
	"latest_config" => "13.5",
102
	"latest_config" => "13.6",
103 103
	"nopkg_platforms" => array("cdrom"),
104 104
	"minimum_ram_warning" => "101",
105 105
	"minimum_ram_warning_text" => "128 MB",
src/etc/inc/upgrade_config.inc
4269 4269
		$config['syslog']['nolognginx'] = true;
4270 4270
	}
4271 4271
}
4272

  
4273
function upgrade_135_to_136() {
4274
	global $config;
4275

  
4276
	if (isset($config['l7shaper'])) {
4277
		file_notice("L7shaper", "Layer 7 shaping is no longer supported. Its configuration has been removed.");
4278
		unset($config['l7shaper']);
4279
		if (is_array($config['filter']['rule'])) {
4280
			foreach ($config['filter']['rule'] as $idx => $rule) {
4281
				if (isset($rule['l7container'])) {
4282
					unset($config['filter']['rule'][$idx]['l7container']);
4283
				}
4284
			}
4285
		}
4286
	}
4287
}
4272 4288
?>

Also available in: Unified diff