aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--identifier.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/identifier.go b/identifier.go
index 785f408..6da0e7c 100644
--- a/identifier.go
+++ b/identifier.go
@@ -23,10 +23,10 @@ func makeIdentifierMAC(request *http.Request) (identifier []byte, mac []byte) {
h := sha256.New()
h.Write(timeBuf)
h.Write(stringToBytes(remoteIP))
- // h.Write(stringToBytes(request.Header.Get("User-Agent")))
- // h.Write(stringToBytes(request.Header.Get("Accept-Encoding")))
- // h.Write(stringToBytes(request.Header.Get("Accept-Language")))
- // h.Write(privkeyHash)
+ h.Write(stringToBytes(request.Header.Get("User-Agent")))
+ h.Write(stringToBytes(request.Header.Get("Accept-Encoding")))
+ h.Write(stringToBytes(request.Header.Get("Accept-Language")))
+ h.Write(privkeyHash)
identifier = h.Sum(identifier)
if len(identifier) != sha256.Size {
panic("unexpected buffer length after hashing contents")