Add. Support CURLOPT_HTTP09_ALLOWED option.

Fix. Set SSL_VERIFYHOST
This commit is contained in:
Alexey Melnichuk 2019-04-06 19:50:29 +03:00
parent e70f6ac9a3
commit 43c864ad9a
2 changed files with 8 additions and 2 deletions

View File

@ -334,10 +334,12 @@ static int lcurl_opt_set_long_(lua_State *L, int opt){
if(lua_isboolean(L, 2)){
val = lua_toboolean(L, 2);
if( val
&& (opt == CURLOPT_SSL_VERIFYHOST)
&& (
(opt == CURLOPT_SSL_VERIFYHOST)
#if LCURL_CURL_VER_GE(7,52,0)
&& (opt == CURLOPT_PROXY_SSL_VERIFYHOST)
|| (opt == CURLOPT_PROXY_SSL_VERIFYHOST)
#endif
)
){
val = 2;
}

View File

@ -457,6 +457,10 @@ OPT_ENTRY(doh_url, DOH_URL, STR, 0, LCURL_DEFA
OPT_ENTRY(upload_buffersize, UPLOAD_BUFFERSIZE, LNG, 0, 64 * 1024)
#endif
#if LCURL_CURL_VER_GE(7,64,0)
OPT_ENTRY(http09_allowed, HTTP09_ALLOWED, LNG, 0, 0)
#endif
//{ Restore system macros
#ifdef LCURL__TCP_FASTOPEN