From 384e40bdde906b436864115415619d7952a4e337 Mon Sep 17 00:00:00 2001 From: Guillaume Rose Date: Mon, 27 Sep 2021 10:27:39 +0200 Subject: [PATCH] gvproxy can start without listening a port or a socket on the host gvproxy can be controlled from the inside network directly. --- cmd/gvproxy/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/gvproxy/main.go b/cmd/gvproxy/main.go index 03ab0338..c967ff59 100644 --- a/cmd/gvproxy/main.go +++ b/cmd/gvproxy/main.go @@ -40,7 +40,7 @@ var ( const gatewayIP = "192.168.127.1" func main() { - flag.Var(&endpoints, "listen", fmt.Sprintf("URL where the tap send packets (default %s)", transport.DefaultURL)) + flag.Var(&endpoints, "listen", "control endpoint") flag.BoolVar(&debug, "debug", false, "Print debug info") flag.IntVar(&mtu, "mtu", 1500, "Set the MTU") flag.IntVar(&sshPort, "ssh-port", 2222, "Port to access the guest virtual machine. Must be between 1024 and 65535") @@ -60,9 +60,7 @@ func main() { if debug { log.SetLevel(log.DebugLevel) } - if len(endpoints) == 0 { - endpoints = append(endpoints, transport.DefaultURL) - } + // Make sure the qemu socket provided is valid syntax if len(qemuSocket) > 0 { uri, err := url.Parse(qemuSocket)