diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-14 09:30:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-14 09:30:16 +0100 |
commit | 6be8ca5a8fd7ef5e4993ca8ca65e1f6a44c28c45 (patch) | |
tree | a2dbf2f150e4a51dd3cc8535c30d80645701d756 | |
parent | 0758fd8c4cc9b9698972e9782af51bbd5c1ff001 (diff) | |
download | rspamd-6be8ca5a8fd7ef5e4993ca8ca65e1f6a44c28c45.tar.gz rspamd-6be8ca5a8fd7ef5e4993ca8ca65e1f6a44c28c45.zip |
[Minor] Allow no_ssl_verify similar to lua_http...
-rw-r--r-- | src/lua/lua_tcp.c | 9 |
1 files changed, 9 insertions, 0 deletions
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"); |