hardcode host connection

This commit is contained in:
Flowseal 2026-03-15 05:00:50 +03:00
parent a0a5bfbecb
commit e4891cfd53
1 changed files with 1 additions and 2 deletions

View File

@ -272,9 +272,8 @@ def _show_info(text: str, title: str = "TG WS Proxy"):
def _on_open_in_telegram(icon=None, item=None): def _on_open_in_telegram(icon=None, item=None):
host = _config.get("host", DEFAULT_CONFIG["host"])
port = _config.get("port", DEFAULT_CONFIG["port"]) port = _config.get("port", DEFAULT_CONFIG["port"])
url = f"tg://socks?server={host}&port={port}" url = f"tg://socks?server=127.0.0.1&port={port}"
log.info("Opening %s", url) log.info("Opening %s", url)
try: try:
result = webbrowser.open(url) result = webbrowser.open(url)