Skip to content

Commit

Permalink
Revert "raise error if httpd-trust IP is not accepted"
Browse files Browse the repository at this point in the history
This reverts commit f27dc3a.
  • Loading branch information
guillomovitch committed Oct 5, 2012
1 parent f27dc3a commit 3f9d3a9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/FusionInventory/Agent/HTTP/Server.pm
Expand Up @@ -234,26 +234,11 @@ sub _handle_status {
sub _is_trusted {
my ($self, $address) = @_;

my $logger = $self->{logger};

my $source = Net::IP->new($address);

if (!$source) {
$logger->error("Not well formatted source IP: $address");
return;
}

return 0 unless $source;

return 0 unless $self->{trust};
foreach my $trust (@{$self->{trust}}) {
my $trusted = Net::IP->new($trust);

if (!$trusted) {
$logger->error("Not well formatted httpd-trust IP: $trust");
next;
}

my $result = $source->overlaps($trusted);

if (
Expand Down

0 comments on commit 3f9d3a9

Please sign in to comment.