summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdhcp_wizard/Dhcp.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm
index 4f83b478..8df76ad0 100755
--- a/dhcp_wizard/Dhcp.pm
+++ b/dhcp_wizard/Dhcp.pm
@@ -58,7 +58,7 @@ $o->{pages} = {
name => N("Interface the dhcp server must listen to"),
pre => sub {
if (!$wiz_ip_server) {
- my $interface = 'eth0';
+ my $interface = $wiz->{net}->default_itf;
($wiz_ip_server) = `/sbin/ip addr show dev $interface` =~ /^\s*inet\s+(\d+\.\d+\.\d+\.\d+)/m;
}
$o->{var}{interface} |= $wiz->{net}->default_itf;