mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
experiment- unique referrer url
This commit is contained in:
parent
5782ce1029
commit
25106c1b4a
@ -8,6 +8,7 @@ import hashlib
|
||||
import logging
|
||||
import secrets
|
||||
import ssl
|
||||
import uuid
|
||||
from enum import Enum, auto
|
||||
from typing import TYPE_CHECKING, Any, cast
|
||||
|
||||
@ -120,7 +121,7 @@ class SslAesTransport(BaseTransport):
|
||||
self._headers = {
|
||||
**self.COMMON_HEADERS,
|
||||
"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._pwd_hash: str | None = None
|
||||
|
Loading…
Reference in New Issue
Block a user