From 5773bc86e0a2718ec0a149edf9c60d9373baea59 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 20 Mar 2007 04:31:19 +0000 Subject: [PATCH] Attempt to fix interface 'routeback' git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5593 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- New/Shorewall/Interfaces.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/New/Shorewall/Interfaces.pm b/New/Shorewall/Interfaces.pm index 735a49900..843722dae 100644 --- a/New/Shorewall/Interfaces.pm +++ b/New/Shorewall/Interfaces.pm @@ -169,6 +169,8 @@ sub validate_interfaces_file() $interfaces{$interface}{broadcast} = \@broadcast; } + my $optionsref = {}; + if ( $options ) { my %options; @@ -188,12 +190,12 @@ sub validate_interfaces_file() $zoneref->{options}{in_out}{routeback} = 1 if $options{routeback}; - $interfaces{$interface}{options} = \%options; + $interfaces{$interface}{options} = $optionsref = \%options; } push @interfaces, $interface; - add_group_to_zone( $zone, $zoneref->{type}, $interface, \@allipv4, {} ) if $zone; + add_group_to_zone( $zone, $zoneref->{type}, $interface, \@allipv4, $optionsref ) if $zone; $interfaces{$interface}{zone} = $zone; #Must follow the call to add_group_to_zone()