]> git.proxmox.com Git - pve-installer.git/commitdiff
Correct DNS IP check on management interface setup
authorFilip Schauer <f.schauer@proxmox.com>
Mon, 16 Oct 2023 10:20:06 +0000 (12:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Nov 2023 16:40:16 +0000 (17:40 +0100)
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
proxinstall

index 64c8babacdcdb6147507eacba80775138a0063b4..113bf37b09143897cbc53a5d23bb9887998fa0fa 100755 (executable)
@@ -499,8 +499,8 @@ sub create_ipconf_view {
        $text = $ipconf_entry_dns->get_text();
        my ($dns_ip, $dns_ip_version) = parse_ip_address($text);
        if (!defined($dns_ip) || $dns_ip_version != $ipversion) {
-           my $msg = defined($gateway_ip)
-               ? "DNS and host IP version must not differ (IPv$gateway_ip_version != IPv$ipversion)."
+           my $msg = defined($dns_ip)
+               ? "DNS and host IP version must not differ (IPv$dns_ip_version != IPv$ipversion)."
                : "DNS IP is not valid.";
            Proxmox::UI::message($msg);
            $ipconf_entry_dns->grab_focus();