Random user-agent

This commit is contained in:
Steven B 2024-12-13 15:42:37 +00:00
parent 4e9b0ee0eb
commit 6d753efb8f
No known key found for this signature in database
GPG Key ID: 6D5B46B3679F2A43

View File

@ -10,7 +10,7 @@ import secrets
import ssl
from enum import Enum, auto
from typing import TYPE_CHECKING, Any, cast
import uuid
from yarl import URL
from ..credentials import DEFAULT_CREDENTIALS, Credentials, get_default_credentials
@ -78,7 +78,8 @@ class SslAesTransport(BaseTransport):
"Accept": "application/json",
"Connection": "close",
"Accept-Encoding": "gzip, deflate",
"User-Agent": "Tapo CameraClient Android",
# "User-Agent": "Tapo CameraClient Android",
"User-Agent": _md5_hash(uuid.uuid4().bytes)
}
CIPHERS = ":".join(
[