Skip to content

Commit

Permalink
Change tests IgnoreCIDR/IgnoreIP set_real_ip_from 127.0.0.1 and ::1/1…
Browse files Browse the repository at this point in the history
…28 for IPv6
  • Loading branch information
lubomudr committed Oct 7, 2023
1 parent 6efca7c commit a6dd485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions unit-tests/tests/33ignoreip.t
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ load_module $TEST_NGINX_NAXSI_MODULE_SO;
--- http_config
include $TEST_NGINX_NAXSI_RULES;
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1/128;
real_ip_header X-Forwarded-For;
--- config
location / {
Expand Down
2 changes: 2 additions & 0 deletions unit-tests/tests/34ignorecidr.t
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ load_module $TEST_NGINX_NAXSI_MODULE_SO;
--- http_config
include $TEST_NGINX_NAXSI_RULES;
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1/128;
real_ip_header X-Forwarded-For;
--- config
location / {
Expand Down Expand Up @@ -277,6 +278,7 @@ load_module $TEST_NGINX_NAXSI_MODULE_SO;
--- http_config
include $TEST_NGINX_NAXSI_RULES;
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1/128;
real_ip_header X-Forwarded-For;
--- config
location / {
Expand Down

0 comments on commit a6dd485

Please sign in to comment.