summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2021-02-10 22:52:31 +0100
committerPapoteur <papoteur@mageia.org>2021-02-10 22:52:31 +0100
commit524df9b40ad6699aa0703038cd3e0c17ccc5d46a (patch)
tree06111026a66ff13d9bf4de3a86d05c14a0a6e237 /dns_wizard
parentd8941d770463d46114cf97f0bd85b287d197bc16 (diff)
downloaddrakwizard-524df9b40ad6699aa0703038cd3e0c17ccc5d46a.tar
drakwizard-524df9b40ad6699aa0703038cd3e0c17ccc5d46a.tar.gz
drakwizard-524df9b40ad6699aa0703038cd3e0c17ccc5d46a.tar.bz2
drakwizard-524df9b40ad6699aa0703038cd3e0c17ccc5d46a.tar.xz
drakwizard-524df9b40ad6699aa0703038cd3e0c17ccc5d46a.zip
Use default interface instead of eth0 in DNS wizard
Diffstat (limited to 'dns_wizard')
-rw-r--r--dns_wizard/Bind.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index 8ded2482..d1d76838 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -40,7 +40,7 @@ if (-f $sys_wizard_dns) {
our ($interface) = cat_($sys_wizard_dns) =~ /INTERFACE=(.*)/;
($IPSERVER) = `/sbin/ip addr show dev $interface` =~ /^\s*inet\s+(\d+\.\d+\.\d+\.\d+)/m;
} else {
- our $interface = "eth0";
+ our $interface = $wiz->{net}->default_itf;
($IPSERVER) = `/sbin/ip addr show dev $interface` =~ /^\s*inet\s+(\d+\.\d+\.\d+\.\d+)/m;
}