Skip to content

Commit

Permalink
5.7.5 fix seley bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Sep 25, 2023
1 parent 097b8a9 commit db180ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/default/x_tunnel/local/web_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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="")
Expand Down

0 comments on commit db180ee

Please sign in to comment.