mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
experiment- unique referrer url
This commit is contained in:
parent
5782ce1029
commit
25106c1b4a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user