summaryrefslogtreecommitdiffstats
path: root/lib/network/network.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-02-11 18:43:18 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-02-11 18:43:18 +0000
commit818b3c27865f515b0024e5a08c7d034077fdab2e (patch)
tree71cb4e820012c8f2271fb9820b20278be71b34a7 /lib/network/network.pm
parent5722162b1b524ebbf10f8c3f86eeffa07385d3a6 (diff)
downloaddrakx-net-818b3c27865f515b0024e5a08c7d034077fdab2e.tar
drakx-net-818b3c27865f515b0024e5a08c7d034077fdab2e.tar.gz
drakx-net-818b3c27865f515b0024e5a08c7d034077fdab2e.tar.bz2
drakx-net-818b3c27865f515b0024e5a08c7d034077fdab2e.tar.xz
drakx-net-818b3c27865f515b0024e5a08c7d034077fdab2e.zip
Guessing DNS server as x.x.x.1, as it is more usual this days (partly
fixes #7041).
Diffstat (limited to 'lib/network/network.pm')
-rw-r--r--lib/network/network.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/network.pm b/lib/network/network.pm
index 71c2ca5..876dfb6 100644
--- a/lib/network/network.pm
+++ b/lib/network/network.pm
@@ -379,7 +379,7 @@ sub masked_ip {
sub dns {
my ($ip) = @_;
my @masked = masked_ip($ip) =~ $ip_regexp;
- $masked[3] = 2;
+ $masked[3] = 1;
join(".", @masked);
}