mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-03 16:00:36 +00:00
commit
5799714117
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user