diff --git a/derp/derphttp/derphttp_client.go b/derp/derphttp/derphttp_client.go index 3bd314464..3327ab43a 100644 --- a/derp/derphttp/derphttp_client.go +++ b/derp/derphttp/derphttp_client.go @@ -226,7 +226,7 @@ func (c *Client) useHTTPS() bool { // tlsServerName returns the tls.Config.ServerName value (for the TLS ClientHello). func (c *Client) tlsServerName(node *tailcfg.DERPNode) string { if c.url != nil { - return c.url.Host + return c.url.Hostname() } return node.HostName }