From 40eea5e514259d658697435997ddeeb9f30ce117 Mon Sep 17 00:00:00 2001 From: Hanada Date: Sat, 25 Apr 2026 19:17:19 +0800 Subject: [PATCH] feature: support ssl sockets for stream subsystem --- lib/resty/websocket/client.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/resty/websocket/client.lua b/lib/resty/websocket/client.lua index e24cc05..dc4e1f2 100644 --- a/lib/resty/websocket/client.lua +++ b/lib/resty/websocket/client.lua @@ -32,7 +32,8 @@ local ssl_support = true if not ngx.config or not ngx.config.ngx_lua_version - or ngx.config.ngx_lua_version < 9011 + or (ngx.config.subsystem ~= "stream" + and ngx.config.ngx_lua_version < 9011) then ssl_support = false end