diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 8a0af07b..2e9718f7 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -23,7 +23,7 @@ sub noLoginNeeded { my $hostname = $c->request->headers->header('X-Forwarded-For') || $c->request->hostname; my $readonly_ips = $c->config->{readonly_ips} // ""; - my $whitelisted = any { $_ == $hostname } split(/,/, $readonly_ips); + my $whitelisted = any { $_ eq $hostname } split(/,/, $readonly_ips); return $whitelisted || $c->request->path eq "google-login" ||