mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
Forward Firewall: BUGFIX - when using source Protocol and NO target protocol only the target protocol is shown in ruletable.(But rule is applied correctly)
This commit is contained in:
committed by
Michael Tremer
parent
c400fe4c84
commit
bac7013b21
@@ -2516,10 +2516,10 @@ END
|
||||
print"</td>";
|
||||
#Get Protocol
|
||||
my $prot;
|
||||
if ($$hash{$key}[12]){ #target prot if manual
|
||||
push (@protocols,$$hash{$key}[12]);
|
||||
}elsif($$hash{$key}[8]){ #source prot if manual
|
||||
if ($$hash{$key}[8] && $$hash{$key}[7] eq 'ON'){#source prot if manual
|
||||
push (@protocols,$$hash{$key}[8]);
|
||||
}elsif ($$hash{$key}[12]){ #target prot if manual
|
||||
push (@protocols,$$hash{$key}[12]);
|
||||
}elsif($$hash{$key}[14] eq 'cust_srv'){
|
||||
&get_serviceports("service",$$hash{$key}[15]);
|
||||
}elsif($$hash{$key}[14] eq 'cust_srvgrp'){
|
||||
|
||||
Reference in New Issue
Block a user