net/udprelay: use mono.Time instead of time.Time

Fixes: https://github.com/tailscale/tailscale/issues/18064

Signed-off-by: Simar <simar@linux.com>
This commit is contained in:
Simar
2025-11-24 19:12:02 -07:00
committed by Jordan Whited
parent 076d5c7214
commit 363d882306
2 changed files with 15 additions and 13 deletions

View File

@@ -18,6 +18,7 @@ import (
"golang.org/x/crypto/blake2s"
"tailscale.com/disco"
"tailscale.com/net/packet"
"tailscale.com/tstime/mono"
"tailscale.com/types/key"
"tailscale.com/types/views"
)
@@ -452,7 +453,7 @@ func Benchmark_blakeMACFromBindMsg(b *testing.B) {
func TestServer_maybeRotateMACSecretLocked(t *testing.T) {
s := &Server{}
start := time.Now()
start := mono.Now()
s.maybeRotateMACSecretLocked(start)
qt.Assert(t, len(s.macSecrets), qt.Equals, 1)
macSecret := s.macSecrets[0]