From 6dfdb7e19283840d31ee8c6478f8a5a125938b85 Mon Sep 17 00:00:00 2001 From: Leo Balduf Date: Fri, 29 Sep 2017 00:50:50 +0200 Subject: [PATCH] udp: clean up connection ID generation --- frontend/udp/connection_id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/udp/connection_id.go b/frontend/udp/connection_id.go index c103142..5436c77 100644 --- a/frontend/udp/connection_id.go +++ b/frontend/udp/connection_id.go @@ -25,7 +25,7 @@ const ttl = 2 * time.Minute // forgery probability of approximately 1 in 4 billion. func NewConnectionID(ip net.IP, now time.Time, key string) []byte { buf := make([]byte, 8) - binary.BigEndian.PutUint32(buf, uint32(now.UTC().Unix())) + binary.BigEndian.PutUint32(buf, uint32(now.Unix())) mac := hmac.New(sha256.New, []byte(key)) mac.Write(buf[:4])