From b66bb3ef023f4024ab7761147ea1f261d8f953b0 Mon Sep 17 00:00:00 2001 From: stilez Date: Wed, 28 Dec 2016 22:46:20 +0000 Subject: revert protocol order change (unrelated to PR) Will pu in separate PR afterwards as requested (cherry picked from commit 86554b5aecb1d219e2f72c97b14de8b5fef495aa) --- src/usr/local/www/firewall_rules_edit.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/usr/local/www/firewall_rules_edit.php') diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 8878a8b..5caf82f 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -328,7 +328,6 @@ if (isset($id) && $a_filter[$id]) { $pconfig['interface'] = $_GET['if']; } $pconfig['type'] = "pass"; - $pconfig['proto'] = "tcp"; // ensures port fields visible and default=tcp, for a new rule $pconfig['src'] = "any"; $pconfig['dst'] = "any"; } @@ -1300,10 +1299,10 @@ $section->addInput(new Form_Select( 'Protocol', $pconfig['proto'], array( - 'any' => gettext('any'), 'tcp' => 'TCP', 'udp' => 'UDP', 'tcp/udp' => 'TCP/UDP', + 'any' => gettext('any'), 'icmp' => 'ICMP', 'esp' => 'ESP', 'ah' => 'AH', -- cgit v1.1