diff --git a/Makefile b/Makefile index fc755f54c5..670fad0b0e 100644 --- a/Makefile +++ b/Makefile @@ -219,7 +219,7 @@ endif # gvisor-tap-vsock version for gvproxy.exe and win-sshproxy.exe downloads # the upstream project ships pre-built binaries since version 0.7.1 -GV_VERSION=v0.8.1 +GV_VERSION=v0.8.4 ### ### Primary entry-point targets diff --git a/contrib/pkginstaller/Makefile b/contrib/pkginstaller/Makefile index 0c46b36af8..1963d163d4 100644 --- a/contrib/pkginstaller/Makefile +++ b/contrib/pkginstaller/Makefile @@ -6,7 +6,7 @@ ifeq ($(ARCH), aarch64) else GOARCH:=$(ARCH) endif -GVPROXY_VERSION ?= 0.8.3 +GVPROXY_VERSION ?= 0.8.4 VFKIT_VERSION ?= 0.6.0 KRUNKIT_VERSION ?= 0.1.4 GVPROXY_RELEASE_URL ?= https://github.com/containers/gvisor-tap-vsock/releases/download/v$(GVPROXY_VERSION)/gvproxy-darwin diff --git a/go.mod b/go.mod index 33b0be481a..36680b2457 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/containers/buildah v1.39.2 github.com/containers/common v0.62.1 github.com/containers/conmon v2.0.20+incompatible - github.com/containers/gvisor-tap-vsock v0.8.3 + github.com/containers/gvisor-tap-vsock v0.8.4 github.com/containers/image/v5 v5.34.1 github.com/containers/libhvee v0.10.0 github.com/containers/ocicrypt v1.2.1 diff --git a/go.sum b/go.sum index 293210e7f9..81ccba28c5 100644 --- a/go.sum +++ b/go.sum @@ -82,8 +82,8 @@ github.com/containers/common v0.62.1 h1:durvu7Kelb8PYgX7bwuAg/d5LKj2hs3cAaqcU7Vn github.com/containers/common v0.62.1/go.mod h1:n9cEboBmY3AnTk1alkq4t7sLM4plwkDCiaWbsf67YxE= github.com/containers/conmon v2.0.20+incompatible h1:YbCVSFSCqFjjVwHTPINGdMX1F6JXHGTUje2ZYobNrkg= github.com/containers/conmon v2.0.20+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I= -github.com/containers/gvisor-tap-vsock v0.8.3 h1:Am3VdjXTn8Mn+dNhgkiRcCFOTSM8u9aWKLW3KTHOGjk= -github.com/containers/gvisor-tap-vsock v0.8.3/go.mod h1:46MvrqNuRNbjV4ZsZ3mHVJjR2Eh+fpyRh72EvWWFFjU= +github.com/containers/gvisor-tap-vsock v0.8.4 h1:z7MqcldnXYGaU6uTaKVl7RFxTmbhNsd2UL0CyM3fdBs= +github.com/containers/gvisor-tap-vsock v0.8.4/go.mod h1:Guh8d/SiuJ9jlnuIyUjcKkFKQ2qpLhNKPGD1jMoIt2Q= github.com/containers/image/v5 v5.34.1 h1:/m2bkFnuedTyNkzma8s7cFLjeefPIb4trjyafWhIlwM= github.com/containers/image/v5 v5.34.1/go.mod h1:/WnvUSEfdqC/ahMRd4YJDBLrpYWkGl018rB77iB3FDo= github.com/containers/libhvee v0.10.0 h1:7VLv8keWZpHuGmWvyY4c1mVH5V1JYb1G78VC+8AlrM0= diff --git a/vendor/github.com/containers/gvisor-tap-vsock/pkg/types/gvproxy_command.go b/vendor/github.com/containers/gvisor-tap-vsock/pkg/types/gvproxy_command.go index 13df0982b3..d0814211c5 100644 --- a/vendor/github.com/containers/gvisor-tap-vsock/pkg/types/gvproxy_command.go +++ b/vendor/github.com/containers/gvisor-tap-vsock/pkg/types/gvproxy_command.go @@ -19,6 +19,9 @@ type GvproxyCommand struct { // List of endpoints the user wants to listen to endpoints []string + // List of service endpoints the user wants to listen to + servicesEndpoints []string + // Map of different sockets provided by user (socket-type flag:socket) sockets map[string]string @@ -62,6 +65,14 @@ func (c *GvproxyCommand) AddEndpoint(endpoint string) { c.endpoints = append(c.endpoints, endpoint) } +func (c *GvproxyCommand) AddServiceEndpoint(endpoint string) { + if len(c.servicesEndpoints) < 1 { + c.servicesEndpoints = []string{} + } + + c.servicesEndpoints = append(c.servicesEndpoints, endpoint) +} + func (c *GvproxyCommand) AddVpnkitSocket(socket string) { c.checkSocketsInitialized() c.sockets["listen-vpnkit"] = socket @@ -152,6 +163,18 @@ func (c *GvproxyCommand) endpointsToCmdline() []string { return args } +func (c *GvproxyCommand) servicesEndpointsToCmdline() []string { + args := []string{} + + for _, endpoint := range c.servicesEndpoints { + if endpoint != "" { + args = append(args, "-services", endpoint) + } + } + + return args +} + // ToCmdline converts Command to a properly formatted command for gvproxy based // on its fields func (c *GvproxyCommand) ToCmdline() []string { @@ -160,6 +183,8 @@ func (c *GvproxyCommand) ToCmdline() []string { // listen (endpoints) args = append(args, c.endpointsToCmdline()...) + args = append(args, c.servicesEndpointsToCmdline()...) + // debug if c.Debug { args = append(args, "-debug") diff --git a/vendor/modules.txt b/vendor/modules.txt index f94f315498..c3460e1487 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -249,7 +249,7 @@ github.com/containers/common/version # github.com/containers/conmon v2.0.20+incompatible ## explicit github.com/containers/conmon/runner/config -# github.com/containers/gvisor-tap-vsock v0.8.3 +# github.com/containers/gvisor-tap-vsock v0.8.4 ## explicit; go 1.22.0 github.com/containers/gvisor-tap-vsock/pkg/types # github.com/containers/image/v5 v5.34.1 diff --git a/winmake.ps1 b/winmake.ps1 index 2bd55d1287..2491b2cb1f 100644 --- a/winmake.ps1 +++ b/winmake.ps1 @@ -64,7 +64,7 @@ function Win-SSHProxy { New-Item -ItemType Directory -Force -Path "./bin/windows" if (-Not $Version) { - $Version = "v0.8.3" + $Version = "v0.8.4" } curl.exe -sSL -o "./bin/windows/gvproxy.exe" --retry 5 "https://github.com/containers/gvisor-tap-vsock/releases/download/$Version/gvproxy-windowsgui.exe" curl.exe -sSL -o "./bin/windows/win-sshproxy.exe" --retry 5 "https://github.com/containers/gvisor-tap-vsock/releases/download/$Version/win-sshproxy.exe"