Merge tag 'v2.5.0' into tizen_3.0_qemu_2.5
[sdk/emulator/qemu.git] / util / qemu-sockets.c
index 5a31d16..a96a8d7 100644 (file)
@@ -367,6 +367,14 @@ static struct addrinfo *inet_parse_connect_opts(QemuOpts *opts, Error **errp)
         ai.ai_family = PF_INET6;
     }
 
+#ifdef CONFIG_MARU
+    // for lookup loopback interface...
+    if (addr[0] == '\0') {
+        ai.ai_flags = 0;
+        addr = NULL;
+    }
+#endif
+
     /* lookup */
     rc = getaddrinfo(addr, port, &ai, &res);
     if (rc != 0) {