[pve-devel] [PATCH] only add tap rules for interface with firewall=1

Dietmar Maurer dietmar at proxmox.com
Thu May 15 06:47:28 CEST 2014


applied, thanks!

> -----Original Message-----
> From: pve-devel [mailto:pve-devel-bounces at pve.proxmox.com] On Behalf
> Of Alexandre Derumier
> Sent: Donnerstag, 15. Mai 2014 06:45
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] only add tap rules for interface with firewall=1
> 
> 
> 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
> e291b85..56c3beb 100644
> --- a/src/PVE/Firewall.pm
> +++ b/src/PVE/Firewall.pm
> @@ -2620,7 +2620,7 @@ sub compile {
>  	foreach my $netid (keys %$conf) {
>  	    next if $netid !~ m/^net(\d+)$/;
>  	    my $net = PVE::QemuServer::parse_net($conf->{$netid});
> -	    next if !$net;
> +	    next if !$net->{firewall};
>  	    my $iface = "tap${vmid}i$1";
> 
>  	    my $macaddr = $net->{macaddr};
> --
> 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