summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-26 10:57:06 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-26 10:57:06 +0200
commitf395c4f3b3852b2674304eba7ccbd1b0dbc900fc (patch)
treee024eb2b06a12b0198d9f6dedb6841e8960a9313 /plugins
parentc6cb5bf4aa75b79bdc3cd1af38788a32bd2c8e1a (diff)
parent27beafede14da47ac55b07df1fd4f9cb9be8814a (diff)
downloadrsyslog-f395c4f3b3852b2674304eba7ccbd1b0dbc900fc.tar.gz
rsyslog-f395c4f3b3852b2674304eba7ccbd1b0dbc900fc.tar.xz
rsyslog-f395c4f3b3852b2674304eba7ccbd1b0dbc900fc.zip
Merge branch 'v6-devel'
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imrelp/imrelp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/imrelp/imrelp.c b/plugins/imrelp/imrelp.c
index f6040b21..a3209fbe 100644
--- a/plugins/imrelp/imrelp.c
+++ b/plugins/imrelp/imrelp.c
@@ -46,6 +46,7 @@
#include "unicode-helper.h"
#include "prop.h"
#include "ruleset.h"
+#include "glbl.h"
MODULE_TYPE_INPUT
MODULE_TYPE_NOKEEP
@@ -57,6 +58,7 @@ DEFobjCurrIf(net)
DEFobjCurrIf(prop)
DEFobjCurrIf(errmsg)
DEFobjCurrIf(ruleset)
+DEFobjCurrIf(glbl)
/* forward definitions */
static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __attribute__((unused)) *pVal);
@@ -162,6 +164,9 @@ addListner(modConfData_t __attribute__((unused)) *modConf, instanceConf_t *inst)
CHKiRet(relpEngineSetDbgprint(pRelpEngine, dbgprintf));
CHKiRet(relpEngineSetEnableCmd(pRelpEngine, (uchar*) "syslog", eRelpCmdState_Required));
CHKiRet(relpEngineSetSyslogRcv(pRelpEngine, onSyslogRcv));
+ if (!glbl.GetDisableDNS()) {
+ CHKiRet(relpEngineSetDnsLookupMode(pRelpEngine, 1));
+ }
}
CHKiRet(relpEngineAddListner(pRelpEngine, inst->pszBindPort));
@@ -295,6 +300,7 @@ CODESTARTmodExit
/* release objects we used */
objRelease(ruleset, CORE_COMPONENT);
+ objRelease(glbl, CORE_COMPONENT);
objRelease(prop, CORE_COMPONENT);
objRelease(net, LM_NET_FILENAME);
objRelease(errmsg, CORE_COMPONENT);
@@ -332,6 +338,7 @@ CODESTARTmodInit
CODEmodInit_QueryRegCFSLineHdlr
pRelpEngine = NULL;
/* request objects we use */
+ CHKiRet(objUse(glbl, CORE_COMPONENT));
CHKiRet(objUse(prop, CORE_COMPONENT));
CHKiRet(objUse(errmsg, CORE_COMPONENT));
CHKiRet(objUse(net, LM_NET_FILENAME));