Skip to content

Commit

Permalink
gvproxy can start without listening a port or a socket on the host
Browse files Browse the repository at this point in the history
gvproxy can be controlled from the inside network directly.
  • Loading branch information
guillaumerose committed Oct 12, 2021
1 parent ec068de commit 384e40b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/gvproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit 384e40b

Please sign in to comment.