From: Vsevolod Stakhov Date: Wed, 14 Aug 2019 08:30:16 +0000 (+0100) Subject: [Minor] Allow no_ssl_verify similar to lua_http... X-Git-Tag: 2.0~429 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6be8ca5a8fd7ef5e4993ca8ca65e1f6a44c28c45;p=rspamd.git [Minor] Allow no_ssl_verify similar to lua_http... --- diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c index e9dab0196..c5518450a 100644 --- a/src/lua/lua_tcp.c +++ b/src/lua/lua_tcp.c @@ -1583,6 +1583,15 @@ lua_tcp_request (lua_State *L) if (lua_type (L, -1) == LUA_TBOOLEAN) { ssl_noverify = lua_toboolean (L, -1); } + else { + /* Similar to lua http, meh... */ + lua_pushstring (L, "no_ssl_verify"); + lua_gettable (L, -2); + if (lua_type (L, -1) == LUA_TBOOLEAN) { + ssl_noverify = lua_toboolean (L, -1); + } + lua_pop (L, 1); + } lua_pop (L, 1); lua_pushstring (L, "on_connect");