From: Alexandre Derumier Date: Wed, 14 May 2014 03:35:09 +0000 (+0200) Subject: allow multiple spaces in venet0 ip list X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=3ba6fd17986d8f719b98fca3a18d8af8aa35f923 allow multiple spaces in venet0 ip list Signed-off-by: Alexandre Derumier --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 9098c0e..95bc130 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -2639,7 +2639,7 @@ sub compile { if ($conf->{ip_address} && $conf->{ip_address}->{value}) { my $ip = $conf->{ip_address}->{value}; - $ip =~ s/\s/,/g; + $ip =~ s/\s+/,/g; generate_venet_rules_direction($ruleset, $cluster_conf, $hostfw_conf, $vmfw_conf, $vmid, $ip, 'IN'); generate_venet_rules_direction($ruleset, $cluster_conf, $hostfw_conf, $vmfw_conf, $vmid, $ip, 'OUT'); }