bukaleyang / zhongkui-waf

WAF based on lua-nginx-module.
Apache License 2.0
165 stars 39 forks source link

請問是否post 也不支援http v2 ? #32

Closed chiyouli closed 9 months ago

chiyouli commented 1 year ago

將nginx 設定改成http2後post出現錯誤,錯誤資訊如下

2023/11/20 11:52:45 [error] 3795#0: *67 lua entry thread aborted: runtime error: /usr/local/openresty/nginx/conf/zhongkui-waf/lib/lib.lua:500: http v2 not supported yet stack traceback: coroutine 0: [C]: in function 'socket' /usr/local/openresty/nginx/conf/zhongkui-waf/lib/lib.lua:500: in function 'isEvilReqBody'

bukaleyang commented 1 year ago

lua-nginx-module应该是支持http2的,你使用的是nginx还是openresty?编译的时候是否有加上--with-http_v2_module选项?

chiyouli commented 1 year ago

使用的是openresty 版本是 1.21.4.3

configure時有加上--with-http_v2_module

bukaleyang commented 1 year ago

nginx的配置文件中是否正确配置,比如 listen 443 ssl http2;

chiyouli commented 1 year ago

有喔~ listen 443 ssl http2; 這邊把http2拿掉就正常了, 加上http2時, 只有post 會報錯

bukaleyang commented 1 year ago

……之前没有测试过http2,看了下官方issues,确实是有些api不支持http2,读取post请求时候就用到了。

chiyouli commented 1 year ago

了解~ 請問會預計升級改寫以支援http2嗎?

bukaleyang commented 1 year ago

会,但不会很快,最近比较忙。

bukaleyang commented 10 months ago

已经支援http2了,不知道你是否有再测试?