summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r--perl-install/network/network.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 912c4dcc8..b31e36e9f 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -372,11 +372,11 @@ You may also enter the IP address of the gateway if you have one"),
),
],
complete => sub {
- unless (is_ip($netc->{dnsServer})) {
+ if ($netc->{dnsServer} and !is_ip($netc->{dnsServer})) {
$in->ask_warn('', _("DNS server address should be in format 1.2.3.4"));
return 1;
}
- unless (is_ip($netc->{GATEWAY})) {
+ if ($netc->{GATEWAY} and !is_ip($netc->{GATEWAY})) {
$in->ask_warn('', _("Gateway address should be in format 1.2.3.4"));
return 1;
}