From 42dfffcd30c793b0a64a989b81756e315b1c2c96 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 2 May 2017 16:18:46 -0400 Subject: Add upgrade code to work around broken shaper rules from old wizard code. Ticket #7434 --- src/etc/inc/globals.inc | 2 +- src/etc/inc/upgrade_config.inc | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/etc') diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc index 061de9c..9166421 100644 --- a/src/etc/inc/globals.inc +++ b/src/etc/inc/globals.inc @@ -70,7 +70,7 @@ $g = array( "disablecrashreporter" => false, "crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php", "debug" => false, - "latest_config" => "16.4", + "latest_config" => "16.5", "minimum_ram_warning" => "101", "minimum_ram_warning_text" => "128 MB", "wan_interface_name" => "wan", diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index ab7574d..bc4e4a1 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -5293,4 +5293,15 @@ function upgrade_163_to_164() { )); convert_widget_164('wol', 'wake_on_lan-0', array('filter' => '')); } + +/* Work around broken wizard rules. See https://redmine.pfsense.org/issues/7434 */ +function upgrade_164_to_165() { + global $config; + foreach ($config['filter']['rule'] as & $rule) { + if ($rule['destination']['port'] == "137-139-137-139") { + $rule['destination']['port'] = "137-139"; + } + } +} + ?> -- cgit v1.1