mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Firewall: New feature: Now it is possible to define a custom service with a portrange. When using this service in a rule or in a servciegroup, the rule is applied correctly.
This commit is contained in:
committed by
Michael Tremer
parent
a15f7d0dd5
commit
14bcb9a23d
@@ -108,10 +108,8 @@ sub get_srv_port
|
||||
my $field=shift;
|
||||
my $prot=shift;
|
||||
foreach my $key (sort {$a <=> $b} keys %customservice){
|
||||
if($customservice{$key}[0] eq $val){
|
||||
if($customservice{$key}[2] eq $prot){
|
||||
return $customservice{$key}[$field];
|
||||
}
|
||||
if($customservice{$key}[0] eq $val && $customservice{$key}[2] eq $prot){
|
||||
return $customservice{$key}[$field];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user