summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 20946dc..18428fc 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1760,7 +1760,7 @@ function filter_generate_user_rule($rule) {
log_error("The gateway: {$rule['gateway']} is invalid or unknown, not using it.");
}
- if(isset($rule['protocol'])) {
+ if (isset($rule['protocol']) && !empty($rule['protocol'])) {
if($rule['protocol'] == "tcp/udp")
$aline['prot'] = " proto { tcp udp } ";
elseif($rule['protocol'] == "icmp")
OpenPOWER on IntegriCloud