Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua.zhang
6 years ago
Commit
422e530b98a6d37f884b1efba6f2675421068b7b
1 parent
ee2bfd14
bug fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_local_access.lua
roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_local_access.lua
View file @
422e530
...
...
@@ -12,7 +12,7 @@ local local_cidr = {
}
-- check if ip is local
-- depends on ngx.real
I
p from setup.lua
-- depends on ngx.real
_i
p from setup.lua
function
check_local_access
(
ip
)
local
is_local_ip
=
false
for
i
=
1
,
#
local_cidr
do
...
...
@@ -23,7 +23,7 @@ function check_local_access(ip)
end
end
if
(
ngx
.
real
Ip
==
nil
or
ngx
.
realI
p
==
''
)
then
if
(
ngx
.
real
_ip
==
nil
or
ngx
.
real_i
p
==
''
)
then
return
end
...
...
Please
register
or
login
to post a comment