imuxsock did ignore configured IP if - always used eth0 if one was set ;)
authorRainer Gerhards <rgerhards@adiscon.com>
Sat, 10 Mar 2012 17:22:14 +0000 (18:22 +0100)
committerRainer Gerhards <rgerhards@adiscon.com>
Sat, 10 Mar 2012 17:22:14 +0000 (18:22 +0100)
plugins/imuxsock/imuxsock.c

index ad8c81e..2f76ed8 100644 (file)
@@ -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");