Skip to content

Commit 4ca5992

Browse files
committed
Added IPRESOLVE, and ACTIVESOCKET. Compatibility with libcurl 7.45.0
1 parent a6dfa6b commit 4ca5992

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Curl.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ namespace NodeLibcurl {
209209
{ "HTTP_VERSION", CURLOPT_HTTP_VERSION },
210210
{ "IGNORE_CONTENT_LENGTH", CURLOPT_IGNORE_CONTENT_LENGTH },
211211
{ "INFILESIZE", CURLOPT_INFILESIZE },
212+
{ "IPRESOLVE", CURLOPT_IPRESOLVE },
212213
{ "LOCALPORT", CURLOPT_LOCALPORT },
213214
{ "LOCALPORTRANGE", CURLOPT_LOCALPORTRANGE },
214215
{ "LOW_SPEED_LIMIT", CURLOPT_LOW_SPEED_LIMIT },
@@ -567,6 +568,10 @@ namespace NodeLibcurl {
567568
};
568569

569570
const std::vector<CurlConstant> curlInfoInteger = {
571+
#if NODE_LIBCURL_VER_GE( 7, 45, 0 )
572+
{ "ACTIVESOCKET", CURLINFO_ACTIVESOCKET },
573+
#endif
574+
570575
#if NODE_LIBCURL_VER_GE( 7, 19, 4 )
571576
{ "CONDITION_UNMET", CURLINFO_CONDITION_UNMET },
572577
#endif

0 commit comments

Comments
 (0)