mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-24 01:26:39 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user