fix(remnawave): serialize dict profile template before placeholder substitution
This commit is contained in:
1 parent
0c308bf7fe
commit
a772e8d808
1 file changed
+2
@@ -276,6 +276,8 @@ def ensure_profile_and_inbound(
|
|||||||
raw_tpl = profile_templates.get(tpl_key)
|
raw_tpl = profile_templates.get(tpl_key)
|
||||||
if not raw_tpl:
|
if not raw_tpl:
|
||||||
raise RuntimeError(f"Не найден шаблон профиля {tpl_key}")
|
raise RuntimeError(f"Не найден шаблон профиля {tpl_key}")
|
||||||
|
if isinstance(raw_tpl, dict):
|
||||||
|
raw_tpl = json.dumps(raw_tpl)
|
||||||
|
|
||||||
priv, _ = generate_x25519(api)
|
priv, _ = generate_x25519(api)
|
||||||
short_id = secrets.token_hex(8)
|
short_id = secrets.token_hex(8)
|
||||||
|
|||||||
Reference in new issue
Block a user