fix: use plain SNI in share links for v2rayNG import

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-28 00:05:01 +08:00
parent 1fc3b8a89c
commit c2c8ae826d
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ def load_env() -> dict[str, str]:
def _sni_qs(value: str) -> str:
"""Encode dots in SNI; some clients misparsed sni=www.microsoft.com."""
return value.replace(".", "%2E")
"""SNI in share links — use plain domain; clients decode URL themselves."""
return value
def build_links(node: dict, env: dict | None = None) -> dict[str, str | dict[str, str]]: