mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: implement CoderVPN client & tunnel (#15612)
Addresses #14734. This PR wires up `tunnel.go` to a `tailnet.Conn` via the new `/tailnet` endpoint, with all the necessary controllers such that a VPN connection can be started, stopped and inspected via the CoderVPN protocol.
This commit is contained in:
@@ -27,6 +27,7 @@ func (e *Encoder[T]) Encode(v T) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// nolint: revive // complains that Decoder has the same function name
|
||||
func (e *Encoder[T]) Close(c websocket.StatusCode) error {
|
||||
return e.conn.Close(c, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user