diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-10 18:22:14 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-10 18:22:14 +0100 |
commit | 68301c98db00dc1b6bc7e09c5f5e47286a16ab95 (patch) | |
tree | 8c9696eaaf1c46412f1cac7361b732cf9ce42bb1 /plugins | |
parent | f993008207811affe8fc52800e408bea241e78e3 (diff) | |
download | rsyslog-68301c98db00dc1b6bc7e09c5f5e47286a16ab95.tar.gz rsyslog-68301c98db00dc1b6bc7e09c5f5e47286a16ab95.tar.xz rsyslog-68301c98db00dc1b6bc7e09c5f5e47286a16ab95.zip |
imuxsock did ignore configured IP if - always used eth0 if one was set ;)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imuxsock/imuxsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c index ad8c81e7..2f76ed87 100644 --- a/plugins/imuxsock/imuxsock.c +++ b/plugins/imuxsock/imuxsock.c @@ -833,7 +833,7 @@ CODESTARTwillRun if(pLocalIPIF == NULL) { strcpy((char*)myIP, "127.0.0.1"); } else { - localRet = net.GetIFIPAddr((uchar*)"eth0", AF_UNSPEC, myIP, (int) sizeof(myIP)); + localRet = net.GetIFIPAddr((uchar*)pLocalIPIF, AF_UNSPEC, myIP, (int) sizeof(myIP)); if(localRet != RS_RET_OK) { DBGPRINTF("imuxsock: could not obtain my IP, using 127.0.0.1 instead\n"); strcpy((char*)myIP, "127.0.0.1"); |