Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-10-21 15:35:10 +01:00
parent 1364922c81
commit 3208cca326
4 changed files with 27 additions and 28 deletions

View File

@ -3,8 +3,8 @@ package main
import (
"encoding/binary"
"flag"
"github.com/rneugeba/virtsock/go/vsock"
"github.com/rneugeba/virtsock/go/hvsock"
"github.com/rneugeba/virtsock/go/vsock"
"log"
"net"
"proxy/libproxy"

View File

@ -35,7 +35,7 @@ func onePort() {
if ipP != nil {
ipP.Run()
} else {
select{} // sleep forever
select {} // sleep forever
}
ctl.Close() // ensure ctl remains alive and un-GCed until here
os.Exit(0)

View File

@ -12,7 +12,6 @@ import (
var interactiveMode bool
// sendError signals the error to the parent and quits the process.
func sendError(err error) {
if interactiveMode {
@ -72,7 +71,7 @@ func parseHostContainerAddrs() (host net.Addr, port int, container net.Addr, loc
default:
log.Fatalf("unsupported protocol %s", *proto)
}
localIP = ! *noLocalIP
localIP = !*noLocalIP
return host, port, container, localIP
}