Add LISTEN support for dotdraw. Thanks to Sebastian Harl for the patch
[olsrd.git] / lib / dot_draw / src / olsrd_dot_draw.c
index 62da07a..e498859 100644 (file)
@@ -221,7 +221,7 @@ plugin_ipc_init(void)
   /* complete the socket structure */
   memset(&sin, 0, sizeof(sin));
   sin.sin_family = AF_INET;
-  sin.sin_addr.s_addr = INADDR_ANY;
+  sin.sin_addr.s_addr = ipc_listen_ip.v4.s_addr;
   sin.sin_port = htons(ipc_port);
 
   /* bind the socket to the port number */