mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-03 03:16:47 +00:00
Previously `execProxy` would - create the proxy - signal success/failure to the parent - run forever (until signalled) Since we want to add more proxy setup and teardown, this patch removes the proxy creation from `execProxy` and renames it to `proxyForever`. Later patches will be able to perform the necessary side-effects before signalling success to the parent. Signed-off-by: David Scott <dave.scott@docker.com>
12 lines
149 B
Go
12 lines
149 B
Go
package main
|
|
|
|
import (
|
|
"pkg/proxy"
|
|
)
|
|
|
|
func main() {
|
|
host, container := parseHostContainerAddrs()
|
|
|
|
proxyForever(proxy.NewProxy(host, container))
|
|
}
|