diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-06 12:03:22 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-06 12:03:22 -0400 |
commit | d1dbbf4dd17d74b6fe963c778fd28c8cf176379f (patch) | |
tree | 3549a75c57fa4d4a97a31212ea423e96248aebc0 /src/usr/local/www/firewall_rules_edit.php | |
parent | aadc597321a9cbb41fb76a5faed256ed8a13f96a (diff) | |
download | pfsense-d1dbbf4dd17d74b6fe963c778fd28c8cf176379f.zip pfsense-d1dbbf4dd17d74b6fe963c778fd28c8cf176379f.tar.gz |
Fixed 5261 (Properly)
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index d15828b..04a9908 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -1245,12 +1245,12 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) { if ($pconfig[$type] == 'any') { $ruleType = 'any'; + } elseif (!is_specialnet($pconfig[$type])) { + $ruleType = 'network'; } elseif ((is_ipaddrv6($pconfig[$type]) && $pconfig[$type.'mask'] == 128) || - (is_ipaddrv4($pconfig[$type]) && $pconfig[$type.'mask'] == 32) || - (is_alias($pconfig[$type]))) { + (is_ipaddrv4($pconfig[$type]) && $pconfig[$type.'mask'] == 32) || + (is_alias($pconfig[$type]))) { $ruleType = 'single'; - } else { - $ruleType = 'network'; } $ruleValues = array( |