experiment- unique referrer url

This commit is contained in:
Steven B 2024-12-13 14:40:42 +00:00
parent 5782ce1029
commit 25106c1b4a
No known key found for this signature in database
GPG Key ID: 6D5B46B3679F2A43

View File

@ -8,6 +8,7 @@ import hashlib
import logging import logging
import secrets import secrets
import ssl import ssl
import uuid
from enum import Enum, auto from enum import Enum, auto
from typing import TYPE_CHECKING, Any, cast from typing import TYPE_CHECKING, Any, cast
@ -120,7 +121,7 @@ class SslAesTransport(BaseTransport):
self._headers = { self._headers = {
**self.COMMON_HEADERS, **self.COMMON_HEADERS,
"Host": self._host, "Host": self._host,
"Referer": f"https://{self._host_port}", "Referer": f"https://{self._host_port}?id={_md5_hash(uuid.uuid4().bytes)}",
} }
self._seq: int | None = None self._seq: int | None = None
self._pwd_hash: str | None = None self._pwd_hash: str | None = None