From db180eecae4cf1dc5741a2203870e4a01549f65a Mon Sep 17 00:00:00 2001 From: Micheal X Date: Mon, 25 Sep 2023 21:36:25 +1300 Subject: [PATCH] 5.7.5 fix seley bug. --- code/default/x_tunnel/local/web_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/default/x_tunnel/local/web_control.py b/code/default/x_tunnel/local/web_control.py index bee590aa12..e96a17dfe6 100644 --- a/code/default/x_tunnel/local/web_control.py +++ b/code/default/x_tunnel/local/web_control.py @@ -254,6 +254,7 @@ def req_token_login_handler(self): password_hash = data["login_password"] cloudflare_domains = data.get("cloudflare_domains") tls_relay = data["tls_relay"] + seleys = data.get("seleys", {}) except Exception as e: xlog.warn("token_login except:%r", e) return self.response_json({ @@ -278,6 +279,8 @@ def req_token_login_handler(self): g.http_client.save_cloudflare_domain(cloudflare_domains) if g.tls_relay_front and tls_relay.get("ips"): g.tls_relay_front.set_ips(tls_relay["ips"]) + if g.seley_front: + g.seley_front.set_hosts(seleys.get("hosts", {})) res, reason = proxy_session.request_balance(username, password_hash, False, update_server=True, promoter="")