Skip to content
代码片段 群组 项目
提交 a352b9bf 编辑于 作者: Andy Green's avatar Andy Green
浏览文件

http: access_log: fix nwsi check

h2 logging often lacked the IP as it checked the af on the sa46_peer of the
child stream when it meant to check the nwsi one.
上级 10a34fc4
No related branches found
No related tags found
无相关合并请求
......@@ -96,7 +96,7 @@ lws_prepare_access_log_info(struct lws *wsi, char *uri_ptr, int uri_len, int met
nwsi = lws_get_network_wsi(wsi);
if (wsi->sa46_peer.sa4.sin_family)
if (nwsi->sa46_peer.sa4.sin_family)
lws_sa46_write_numeric_address(&nwsi->sa46_peer, ta, sizeof(ta));
else
strncpy(ta, "unknown", sizeof(ta));
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册