summaryrefslogtreecommitdiffstats
path: root/perl-install/network/shorewall.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-26 09:32:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-26 09:32:50 +0000
commitdc8c9e96aab7264968037edf5ef660888b25a9fa (patch)
tree876f7bd6a6895adfab1b349b59d80c38f3cc5f60 /perl-install/network/shorewall.pm
parent2e8a10afb8eeeb623c73e3e433c0ae17ffdfd039 (diff)
downloaddrakx-dc8c9e96aab7264968037edf5ef660888b25a9fa.tar
drakx-dc8c9e96aab7264968037edf5ef660888b25a9fa.tar.gz
drakx-dc8c9e96aab7264968037edf5ef660888b25a9fa.tar.bz2
drakx-dc8c9e96aab7264968037edf5ef660888b25a9fa.tar.xz
drakx-dc8c9e96aab7264968037edf5ef660888b25a9fa.zip
ensure net_interface is found in any case
Diffstat (limited to 'perl-install/network/shorewall.pm')
-rw-r--r--perl-install/network/shorewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm
index 8a8c41b1c..92ac212e4 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -51,7 +51,7 @@ sub default_interfaces {
if (@l == 1) {
$conf{net_interface} = $l[0];
} else {
- $conf{net_interface} = network::netconnect::get_net_device() or return;
+ $conf{net_interface} = network::netconnect::get_net_device() || $l[0];
$conf{loc_interface} = [ grep { $_ ne $conf{net_interface} } @l ];
}
\%conf;