Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with NGINX 1.23.0 #17

Open
dvershinin opened this issue Jun 22, 2022 · 2 comments
Open

Not compatible with NGINX 1.23.0 #17

dvershinin opened this issue Jun 22, 2022 · 2 comments

Comments

@dvershinin
Copy link
Contributor

Compilation fails with:

ngx_bot_verifier-0.0.10/ngx_http_bot_verifier_address_tools.c: In function 'ngx_http_bot_verifier_module_determine_address':
ngx_bot_verifier-0.0.10/ngx_http_bot_verifier_address_tools.c:44:28: error: initialization of 'ngx_array_t *' from incompatible pointer type 'ngx_table_elt_t **' {aka 'struct ngx_table_elt_s **'} [-Werror=incompatible-pointer-types]
   44 |   ngx_array_t *ngx_array = &r->headers_in.x_forwarded_for;
      |                            ^
@abedra
Copy link
Member

abedra commented Jun 23, 2022

thanks for reporting. I'll take a look

dvershinin added a commit to dvershinin/ngx_bot_verifier that referenced this issue Jun 26, 2022
Resolves compilation and runtime issue for NGINX >= 1.23.0
@dvershinin
Copy link
Contributor Author

@abedra Please see pull request #18 for this. (tests proceed fine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants