From: Wilfried Goesgens Date: Sun, 5 Jun 2011 16:44:59 +0000 (+0000) Subject: if specified, use our bind-ip for the http clients. X-Git-Tag: v8.11~1045 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=5f531953971f861f396bc441239367f4056ca6f0 if specified, use our bind-ip for the http clients. --- 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);