Lines 152-158
unless ( C4::Context->preference('ILS-DI') ) {
Link Here
|
152 |
} |
152 |
} |
153 |
|
153 |
|
154 |
# If the remote address is not allowed, redirect to 403 |
154 |
# If the remote address is not allowed, redirect to 403 |
155 |
my @AuthorizedIPs = split(/,/, C4::Context->preference('ILS-DI:AuthorizedIPs')); |
155 |
my @AuthorizedIPs = split( /,/, C4::Context->preference('ILS-DI:Authorized_IPs') ); |
156 |
if ( @AuthorizedIPs # If no filter set, allow access to everybody |
156 |
if ( @AuthorizedIPs # If no filter set, allow access to everybody |
157 |
and not any { $ENV{'REMOTE_ADDR'} eq $_ } @AuthorizedIPs # IP Check |
157 |
and not any { $ENV{'REMOTE_ADDR'} eq $_ } @AuthorizedIPs # IP Check |
158 |
) { |
158 |
) { |
159 |
- |
|
|