Skip to content
Snippets Groups Projects
Commit 4c7c760d authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

configuration parameter renaming

parent d1590338
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ templates_theme = edugain
accounts_file = /var/lib/access-check/accounts.php
[status]
allow = 127.0.0.1, ::1, 10.45.0.0/16
allowed = 127.0.0.1, ::1, 10.45.0.0/16
disabled = 0
[federations]
......
......@@ -709,8 +709,8 @@ sub req_status {
Net::IP->require();
my $source_ip_string = get_source_address();
my $source_ip = Net::IP->new($source_ip_string);
my @allowed_ips_strings = $self->{configuration}->{status}->{allow} ?
split(/, */, $self->{configuration}->{status}->{allow}) : ();
my @allowed_ips_strings = $self->{configuration}->{status}->{allowed} ?
split(/, */, $self->{configuration}->{status}->{allowed}) : ();
my @allowed_ips = map { Net::IP->new($_) } @allowed_ips_strings;
if (any { $_->overlaps($source_ip) } @allowed_ips) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment