From 5f531953971f861f396bc441239367f4056ca6f0 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 5 Jun 2011 16:44:59 +0000 Subject: [PATCH] if specified, use our bind-ip for the http clients. --- citadel/modules/eventclient/serv_eventclient.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/citadel/modules/eventclient/serv_eventclient.c b/citadel/modules/eventclient/serv_eventclient.c index f2fbef00a..971200e52 100644 --- a/citadel/modules/eventclient/serv_eventclient.c +++ b/citadel/modules/eventclient/serv_eventclient.c @@ -337,6 +337,14 @@ int evcurl_init(AsyncIO *IO, OPT(WRITEDATA, (void *)IO); OPT(ERRORBUFFER, IO->HttpReq.errdesc); + if ( + (!IsEmptyStr(config.c_ip_addr)) + && (strcmp(config.c_ip_addr, "*")) + && (strcmp(config.c_ip_addr, "::")) + && (strcmp(config.c_ip_addr, "0.0.0.0")) + ) { + OPT(INTERFACE, config.c_ip_addr); + } /* point to a structure that points back to the perl structure and stuff */ CtdlLogPrintf(CTDL_DEBUG, "EVCURL: Loading URL: %s\n", IO->ConnectMe->PlainUrl); OPT(URL, IO->ConnectMe->PlainUrl); -- 2.30.2