forked from lix-project/hydra
Fix string comparison
This commit is contained in:
parent
27103398c9
commit
b645b03536
|
@ -23,7 +23,7 @@ sub noLoginNeeded {
|
||||||
|
|
||||||
my $hostname = $c->request->headers->header('X-Forwarded-For') || $c->request->hostname;
|
my $hostname = $c->request->headers->header('X-Forwarded-For') || $c->request->hostname;
|
||||||
my $readonly_ips = $c->config->{readonly_ips} // "";
|
my $readonly_ips = $c->config->{readonly_ips} // "";
|
||||||
my $whitelisted = any { $_ == $hostname } split(/,/, $readonly_ips);
|
my $whitelisted = any { $_ eq $hostname } split(/,/, $readonly_ips);
|
||||||
|
|
||||||
return $whitelisted ||
|
return $whitelisted ||
|
||||||
$c->request->path eq "google-login" ||
|
$c->request->path eq "google-login" ||
|
||||||
|
|
Loading…
Reference in a new issue