mirror of https://github.com/wulabing/Xray_onekey
parent
b63794757a
commit
259f595715
|
@ -85,7 +85,6 @@ http {
|
||||||
location / {
|
location / {
|
||||||
auth_basic "";
|
auth_basic "";
|
||||||
auth_basic_user_file /etc/openresty/auth;
|
auth_basic_user_file /etc/openresty/auth;
|
||||||
autoindex on;
|
|
||||||
add_header Content-Type text/plain;
|
add_header Content-Type text/plain;
|
||||||
real_ip_header proxy_protocol;
|
real_ip_header proxy_protocol;
|
||||||
set_real_ip_from 0.0.0.0/8;
|
set_real_ip_from 0.0.0.0/8;
|
||||||
|
@ -101,7 +100,7 @@ http {
|
||||||
if string.find(line,clientIP) then
|
if string.find(line,clientIP) then
|
||||||
m = string.find(line,clientIP)
|
m = string.find(line,clientIP)
|
||||||
ngx.print("当前IP:"..clientIP.."已存在,无需添加")
|
ngx.print("当前IP:"..clientIP.."已存在,无需添加")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if m == nil then
|
if m == nil then
|
||||||
io.write("allow "..clientIP..";\n")
|
io.write("allow "..clientIP..";\n")
|
||||||
|
|
Loading…
Reference in New Issue