mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-10-20 19:50:44 +00:00
fix: исправить форматирование возвращаемого значения в функции create_happ_crypto_link
This commit is contained in:
parent
9f84dfb518
commit
8979e2a588
2 changed files with 2 additions and 2 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue