Skip to content

Commit b6042b5

Browse files
committed
Allow a nil node for the TLS config
1 parent 873afd5 commit b6042b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

derp/derphttp/derphttp_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ func (c *Client) tlsServerName(node *tailcfg.DERPNode) string {
193193
if c.url != nil {
194194
return c.url.Host
195195
}
196+
if node == nil {
197+
return ""
198+
}
196199
return node.HostName
197200
}
198201

0 commit comments

Comments
 (0)