From c752e8159e7dcfb531bbc1a7a190f61c7c0072cc Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 23 Mar 2025 23:03:57 +0800 Subject: identifier.go: Remove many elements (some mobile browsers mess it up?) --- identifier.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'identifier.go') diff --git a/identifier.go b/identifier.go index 6da0e7c..785f408 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") -- cgit v1.2.3