summaryrefslogtreecommitdiffstats
path: root/bin/drakhosts
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-11-09 11:11:07 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-11-09 11:11:07 +0000
commit99ed13c4bc16e39b59ee8fcc0954f8a991c984fb (patch)
tree382b6f015139becfe113a99981052d1ea7509a96 /bin/drakhosts
parenta72de41cd8369d5ddcd48b4de6e9d78a1b7f3272 (diff)
downloaddrakx-net-99ed13c4bc16e39b59ee8fcc0954f8a991c984fb.tar
drakx-net-99ed13c4bc16e39b59ee8fcc0954f8a991c984fb.tar.gz
drakx-net-99ed13c4bc16e39b59ee8fcc0954f8a991c984fb.tar.bz2
drakx-net-99ed13c4bc16e39b59ee8fcc0954f8a991c984fb.tar.xz
drakx-net-99ed13c4bc16e39b59ee8fcc0954f8a991c984fb.zip
Allow multiple IPs which resolve to the same host in /etc/hosts (#30168)
Diffstat (limited to 'bin/drakhosts')
-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";