fix: исправить форматирование возвращаемого значения в функции create_happ_crypto_link

This commit is contained in:
Artem 2025-12-11 08:46:33 +01:00
parent 9f84dfb518
commit 8979e2a588
No known key found for this signature in database
GPG key ID: 833485276B7902CE
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[project]
name = "remnawave"
version = "2.3.2"
version = "2.3.2rc1"
description = "A Python SDK for interacting with the Remnawave API v2.3.2."
authors = [
{name = "Artem",email = "dev@forestsnet.com"}

View file

@ -52,6 +52,6 @@ def create_happ_crypto_link(content: str, method: Literal["v3", "v4"] = "v4") ->
content.encode("utf-8"), padding.PKCS1v15() # RSA_PKCS1_PADDING
)
return "happ://crypt{" + method.lower().replace("v", "") + "/" + base64.b64encode(encrypted).decode()
return "happ://crypt" + method.lower().replace("v", "") + "/" + base64.b64encode(encrypted).decode()
except Exception:
return ""