leev / ngx_http_geoip2_module

Nginx GeoIP2 module
BSD 2-Clause "Simplified" License
983 stars 186 forks source link

Does not compile with nginx release 1.23.0 #108

Closed oblivian closed 2 years ago

oblivian commented 2 years ago

ngx_http_geoip2_module.c:172:14: error: assignment to ‘ngx_array_t ’ {aka ‘struct ’} from incompatible pointer type ‘ngx_table_elt_t ’ {aka ‘struct ngx_table_elt_s ’} [-Werror=incompatible-pointer-types]

ngx_http_geoip2_module.c:175:58: error: passing argument 3 of ‘ngx_http_get_forwarded_addr’ from incompatible pointer type [-Werror=incompatible-pointer-types]

leev commented 2 years ago

@oblivian can you please try https://github.com/leev/ngx_http_geoip2_module/tree/nginx-1.23-api-change

oblivian commented 2 years ago

@leev seems to work perfectly! 😀 And thank you for this awesome module. 🤩