From 99ed13c4bc16e39b59ee8fcc0954f8a991c984fb Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 9 Nov 2009 11:11:07 +0000 Subject: Allow multiple IPs which resolve to the same host in /etc/hosts (#30168) --- bin/drakhosts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'bin/drakhosts') diff --git a/bin/drakhosts b/bin/drakhosts index cdd5a22..1b99c1b 100644 --- a/bin/drakhosts +++ b/bin/drakhosts @@ -120,15 +120,6 @@ sub add_modify_entry { cancel_clicked => sub { $dialog->destroy }, ok_clicked => sub { is_ip($ip->get_text) or err_dialog(N("Error!"), N("Please enter a valid IP address.")) and return; - my $testip = chomp_($ip->get_text); - my $toldip = chomp_($oldip); - if ($testip !~ /$toldip/ || $wanted =~ /add/) { - foreach my $a (@listhosts) { - if ($a->{ip} =~ /$testip/) { - err_dialog(N("Error!"), N("Same IP is already in %s file.", $HOSTS)) and return; - } - } - } if ($wanted =~ /add/) { $iter = $model->append; $i = "-1"; -- cgit v1.2.1