Files
linuxkit/alpine/packages/proxy/main.go
David Scott 5090fd9599 proxy: add a multiplexing server frontend
On a Hyper-V system we can only register one listening endpoint (with
a GUID), so we need to accept connections, read a header and then
start the proxy.

If the binary has argv[0] == "proxy-vsockd" then run this new frontend.

Signed-off-by: David Scott <dave.scott@docker.com>
2016-05-22 12:43:18 +01:00

15 lines
139 B
Go

package main
import (
"os"
"path"
)
func main() {
if path.Base(os.Args[0]) == "proxy-vsockd" {
manyPorts()
return
}
onePort()
}