summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imuxsock/imuxsock.c2
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");