From f338158654e388bea0164b9db9cf75252ee768e0 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 16 May 2017 20:51:14 +0200 Subject: [PATCH] Use 127.0.0.1 for local UDP tunnels to uBridge for Qemu. Ref #664. --- gns3server/compute/qemu/qemu_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index 43d102fe..fc830cae 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -1492,7 +1492,7 @@ class QemuVM(BaseNode): adapter_number, nio.rhost, nio.rport, - "0.0.0.0", + "127.0.0.1", nio.lport)]) elif isinstance(nio, NIOTAP): network_options.extend(["-net", "tap,name=gns3-{},ifname={}".format(adapter_number, nio.tap_device)]) @@ -1513,7 +1513,7 @@ class QemuVM(BaseNode): network_options.extend(["-netdev", "socket,id=gns3-{},udp={}:{},localaddr={}:{}".format(adapter_number, nio.rhost, nio.rport, - "0.0.0.0", + "127.0.0.1", nio.lport)]) elif isinstance(nio, NIOTAP): network_options.extend(["-netdev", "tap,id=gns3-{},ifname={},script=no,downscript=no".format(adapter_number, nio.tap_device)])