[pve-devel] [PATCH] allow multiple spaces in venet0 ip list
Dietmar Maurer
dietmar at proxmox.com
Wed May 14 07:22:32 CEST 2014
applied
> -----Original Message-----
> From: pve-devel [mailto:pve-devel-bounces at pve.proxmox.com] On Behalf
> Of Alexandre Derumier
> Sent: Mittwoch, 14. Mai 2014 05:35
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] allow multiple spaces in venet0 ip list
>
>
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
> src/PVE/Firewall.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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');
> }
> --
> 1.7.10.4
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list