diff --git a/hscontrol/mapper/node_conn.go b/hscontrol/mapper/node_conn.go index a43138a9a..1203cd316 100644 --- a/hscontrol/mapper/node_conn.go +++ b/hscontrol/mapper/node_conn.go @@ -394,6 +394,7 @@ func (mc *multiChannelNodeConn) send(data *tailcfg.MapResponse) error { if data.Node != nil { conn.lastSelf.Store(data.Node) } + if data.SSHPolicy != nil { conn.lastSSHPolicy.Store(data.SSHPolicy) } diff --git a/hscontrol/noise_test.go b/hscontrol/noise_test.go index 91ad75603..e40e10d23 100644 --- a/hscontrol/noise_test.go +++ b/hscontrol/noise_test.go @@ -13,8 +13,8 @@ import ( "net/url" "slices" "strconv" - "sync" "strings" + "sync" "testing" "time"