summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-11-13 12:11:00 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-11-13 12:11:00 +0000
commitd450048f9bcac36555ce60b4287333cd07603d88 (patch)
treebb1b33e2bd8026f68c68db10cc3674870692ea1d
parentf62691e7298f9119a738063db8ccd08432c3581d (diff)
downloaddrakx-net-d450048f9bcac36555ce60b4287333cd07603d88.tar
drakx-net-d450048f9bcac36555ce60b4287333cd07603d88.tar.gz
drakx-net-d450048f9bcac36555ce60b4287333cd07603d88.tar.bz2
drakx-net-d450048f9bcac36555ce60b4287333cd07603d88.tar.xz
drakx-net-d450048f9bcac36555ce60b4287333cd07603d88.zip
Allow multiple IPs which resolve to the same host in /etc/hosts (#30168)
-rw-r--r--bin/drakhosts9
1 files changed, 0 insertions, 9 deletions
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";