From 4fd4da75f2ec0b1106e04f4b15640d039bcdb9e5 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 8 Oct 2026 07:43:32 +0000 Subject: [PATCH] hscontrol: fix formatting after combining SSH policy changes Updates #3517 --- hscontrol/mapper/node_conn.go | 1 + hscontrol/noise_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hscontrol/mapper/node_conn.go b/hscontrol/mapper/node_conn.go index a43138a9..1203cd31 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 91ad7560..e40e10d2 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"