From 438f91b8b5a43516d8904f23be2fa9898fdc465c Mon Sep 17 00:00:00 2001 From: "Olle E. Johansson" Date: Mon, 28 Mar 2016 12:08:25 +0200 Subject: [PATCH] http_client Add error parsing for DNS issues with http_proxy --- modules/http_client/functions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c index dc75042095f..546ffc424ab 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); }