summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/net_applet2
-rw-r--r--lib/network/tools.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 31f9695..34b391c 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -279,7 +279,7 @@ sub checkWireless() {
sub checkNetwork() {
my ($gw_intf, $_is_up, $gw_address) = $watched_interface ?
($watched_interface, network::tools::get_interface_status($watched_interface)) :
- network::tools::get_internet_connection($net);
+ network::tools::get_default_connection($net);
go2State($gw_address ? 'connected' : $gw_intf ? 'disconnected' : 'unconfigured', $gw_intf);
}
sub checkNetworkForce() {
diff --git a/lib/network/tools.pm b/lib/network/tools.pm
index 840834a..1d4df88 100644
--- a/lib/network/tools.pm
+++ b/lib/network/tools.pm
@@ -193,7 +193,7 @@ sub get_interface_status {
}
#- returns (gateway_interface, interface is up, gateway address, dns server address)
-sub get_internet_connection {
+sub get_default_connection {
my ($net, $o_gw_intf) = @_;
my $gw_intf = $o_gw_intf || get_default_gateway_interface($net) or return;
return $gw_intf, get_interface_status($gw_intf), $net->{resolv}{dnsServer};