diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-04-11 15:37:14 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-04-11 15:37:14 +0200 |
commit | e2978cd396551280274bd7a17ec3034e4a0dab9e (patch) | |
tree | 51bcbd23d1d55e22ebae46bda2cb1e22c18a7f38 /plugins/imuxsock | |
parent | eefb295c90fb51c9f6f7c1a5bb95bba52d3a3557 (diff) | |
download | rsyslog-e2978cd396551280274bd7a17ec3034e4a0dab9e.tar.gz rsyslog-e2978cd396551280274bd7a17ec3034e4a0dab9e.tar.xz rsyslog-e2978cd396551280274bd7a17ec3034e4a0dab9e.zip |
imuxsock: fixed regression from last merge
thanks to Brian Knox for alerting me and the initial analysis
Diffstat (limited to 'plugins/imuxsock')
-rw-r--r-- | plugins/imuxsock/imuxsock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c index 39d239b7..4a7e7b42 100644 --- a/plugins/imuxsock/imuxsock.c +++ b/plugins/imuxsock/imuxsock.c @@ -1271,6 +1271,13 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(prop.SetString(pInputName, UCHAR_CONSTANT("imuxsock"), sizeof("imuxsock") - 1)); CHKiRet(prop.ConstructFinalize(pInputName)); + /* right now, glbl does not permit per-instance IP address notation. As long as this + * is the case, it is OK to query the HostIP once here at this location. HOWEVER, the + * whole concept is not 100% clean and needs to be addressed on a higher layer. + * TODO / rgerhards, 2012-04-11 + */ + pLocalHostIP = glbl.GetLocalHostIP(); + /* init system log socket settings */ listeners[0].flags = IGNDATE; listeners[0].sockName = UCHAR_CONSTANT(_PATH_LOG); |