feat: vpn uses WorkspaceHostnameSuffix for DNS names (#17335)

Use the hostname suffix to set DNS names as programmed into the DNS service and returned by the vpn `Tunnel`.

part of: #16828
This commit is contained in:
Spike Curtis
2025-04-11 13:24:20 +04:00
committed by GitHub
parent 12dc086628
commit 2c573dc023
6 changed files with 249 additions and 173 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ type AgentConnectionInfo struct {
DERPMap *tailcfg.DERPMap `json:"derp_map"`
DERPForceWebSockets bool `json:"derp_force_websockets"`
DisableDirectConnections bool `json:"disable_direct_connections"`
HostnameSuffix string `json:"hostname_suffix"`
HostnameSuffix string `json:"hostname_suffix,omitempty"`
}
func (c *Client) AgentConnectionInfoGeneric(ctx context.Context) (AgentConnectionInfo, error) {