summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/netconnect.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 0fd988180..d95b099e2 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -982,9 +982,11 @@ I cannot set up this connection type.")), return;
static_hostname =>
{
pre => sub {
- $netc->{dnsServer} ||= dns($ethntf->{IPADDR});
- $gateway_ex = gateway($ethntf->{IPADDR});
- #- $netc->{GATEWAY} ||= gateway($ethntf->{IPADDR});
+ if ($ethntf->{IPADDR}) {
+ $netc->{dnsServer} ||= dns($ethntf->{IPADDR});
+ $gateway_ex = gateway($ethntf->{IPADDR});
+ # $netc->{GATEWAY} ||= gateway($ethntf->{IPADDR});
+ }
},
name => N("Please enter your host name.
Your host name should be a fully-qualified host name,