summaryrefslogtreecommitdiffstats
path: root/lib/network/tools.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/tools.pm')
-rw-r--r--lib/network/tools.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/tools.pm b/lib/network/tools.pm
index ca4c50f..0a1d840 100644
--- a/lib/network/tools.pm
+++ b/lib/network/tools.pm
@@ -197,6 +197,7 @@ sub get_default_connection {
my ($net, $o_gw_intf) = @_;
my $gw_intf = $o_gw_intf || get_default_gateway_interface($net) or return;
$net->{resolv} = {};
+ require network::network;
add2hash($net->{resolv}, network::network::read_resolv_conf());
return $gw_intf, get_interface_status($gw_intf), $net->{resolv}{dnsServer};
}