X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Feventclient%2Fserv_eventclient.c;h=971200e5288e8f9f37c4910bc78270a5de7cd108;hp=f2fbef00a6d93bab1b9d43e9e3ddb1bc6f2ffb04;hb=5f531953971f861f396bc441239367f4056ca6f0;hpb=c661d2684bb4afee636f5fc8104ac3a8c43fc8b9 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);