Xray-0.2.0

[update] 添加配置自动应用,重复IP判断
pull/411/head
wulabing 2022-06-02 17:56:10 +08:00
parent b63794757a
commit 259f595715
No known key found for this signature in database
GPG Key ID: 213391AFDF73AE00
1 changed files with 1 additions and 2 deletions

View File

@ -85,7 +85,6 @@ http {
location / {
auth_basic "";
auth_basic_user_file /etc/openresty/auth;
autoindex on;
add_header Content-Type text/plain;
real_ip_header proxy_protocol;
set_real_ip_from 0.0.0.0/8;
@ -101,7 +100,7 @@ http {
if string.find(line,clientIP) then
m = string.find(line,clientIP)
ngx.print("当前IP:"..clientIP.."已存在,无需添加")
end
end
end
if m == nil then
io.write("allow "..clientIP..";\n")