From 7ed32661cb64ec6798fb44d4a40d3d8b2d118fa7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 12 Aug 2014 09:18:35 -0700 Subject: [PATCH] vboxwrapper: fix bug in forwarding multiple ports --- samples/vboxwrapper/vbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index fdde1145c0..e3f3b4cba1 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -864,7 +864,7 @@ int VBOX_VM::create_vm() { // Add new firewall rule // - sprintf(buf, "vboxwrapper,tcp,%s,%d,,%d", + sprintf(buf, ",tcp,%s,%d,,%d", pf.is_remote?"":"127.0.0.1", pf.host_port, pf.guest_port );