]> git.proxmox.com Git - pve-firewall.git/commitdiff
fix ipset ref test in parse_address_list
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Apr 2014 05:21:58 +0000 (07:21 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Apr 2014 05:21:58 +0000 (07:21 +0200)
src/PVE/Firewall.pm

index 296ec8c55823d686f516dc1b466262f03dd1f63f..5bc6d8a9b9b13cc4a55da86cd244b10371000723 100644 (file)
@@ -687,7 +687,7 @@ sub get_etc_protocols {
 sub parse_address_list {
     my ($str) = @_;
 
-    return if $str !~ m/^(\+)(\S+)$/; # ipset ref
+    return if $str =~ m/^(\+)(\S+)$/; # ipset ref
 
     my $count = 0;
     my $iprange = 0;