You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/hostagent: Support port forwarding to direct guest IP
Change to use `github.com/inetaf/tcpproxy`:
- pkg/driver/vz/vsock_forwarder.go
- pkg/portfwd/client.go
- pkg/portfwdserver/server.go
pkg/portfwd:
- Use `dialContext` instead of `client` to use `net.Conn` other than `GrpcClientRW`.
- Change to create proxies from `dialContext` parameters instead of `conn`.
- Add `DialContextToGRPCTunnel()` to return `DialContext` function that connects to GRPC tunnel.
pkg/hostagent:
- Add `HostAgent.DialContextToGuestIP()` to return `DialContext` function that connects to the guest IP directly.
If the guest IP is not known, it returns nil.
- Prefer `HostAgent.DialContextToGuestIP()` over `portfwd.DialContextToGRPCTunnel()`.
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
pkg/hostagent: Use `HostAgent.DialContextToGuestIP()` if the IP is accessible directly.
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
Revert to "github.com/containers/gvisor-tap-vsock/pkg/tcpproxy"
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
# Conflicts:
# pkg/hostagent/hostagent.go
pkg/hostagent: Aware forwarding guest address is IPv4 or IPv6
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
pkg/hostagent: Fallback to GRPC forwarder if dialing to a direct ip fails
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
# Conflicts:
# pkg/hostagent/hostagent.go
0 commit comments