Module: kamailio Branch: master Commit: 438f91b8b5a43516d8904f23be2fa9898fdc465c URL: https://github.com/kamailio/kamailio/commit/438f91b8b5a43516d8904f23be2fa989...
Author: Olle E. Johansson oej@edvina.net Committer: Olle E. Johansson oej@edvina.net Date: 2016-03-28T12:08:25+02:00
http_client Add error parsing for DNS issues with http_proxy
---
Modified: modules/http_client/functions.c
---
Diff: https://github.com/kamailio/kamailio/commit/438f91b8b5a43516d8904f23be2fa989... Patch: https://github.com/kamailio/kamailio/commit/438f91b8b5a43516d8904f23be2fa989...
---
diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c index dc75042..546ffc4 100644 --- a/modules/http_client/functions.c +++ b/modules/http_client/functions.c @@ -222,6 +222,8 @@ static int curL_query_url(struct sip_msg* _m, const char* _url, str* _dst, const LM_WARN("failed to connect() to host\n"); } else if ( res == CURLE_COULDNT_RESOLVE_HOST ) { LM_WARN("couldn't resolve host\n"); + } else if ( res == CURLE_COULDNT_RESOLVE_PROXY ) { + LM_WARN("couldn't resolve http_proxy host\n"); } else { LM_ERR("failed to perform curl (%d)\n", res); }