mirror of
https://github.com/tailscale/tailscale.git
synced 2025-11-16 02:44:28 +00:00
ipn/ipnlocal,wgengine/magicsock: wait for magicsock to process pending events on authReconfig
Updates #16369 Signed-off-by: Nick Khyl <nickk@tailscale.com>
This commit is contained in:
@@ -85,6 +85,12 @@ func makeNodeKeyFromID(nodeID tailcfg.NodeID) key.NodePublic {
|
||||
return key.NodePublicFromRaw32(memro.B(raw))
|
||||
}
|
||||
|
||||
func makeDiscoKeyFromID(nodeID tailcfg.NodeID) (ret key.DiscoPublic) {
|
||||
raw := make([]byte, 32)
|
||||
binary.BigEndian.PutUint64(raw[24:], uint64(nodeID))
|
||||
return key.DiscoPublicFromRaw32(memro.B(raw))
|
||||
}
|
||||
|
||||
func TestShrinkDefaultRoute(t *testing.T) {
|
||||
tests := []struct {
|
||||
route string
|
||||
|
||||
Reference in New Issue
Block a user