Skip to content

Commit db180ee

Browse files
committed
5.7.5 fix seley bug.
1 parent 097b8a9 commit db180ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/default/x_tunnel/local/web_control.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def req_token_login_handler(self):
254254
password_hash = data["login_password"]
255255
cloudflare_domains = data.get("cloudflare_domains")
256256
tls_relay = data["tls_relay"]
257+
seleys = data.get("seleys", {})
257258
except Exception as e:
258259
xlog.warn("token_login except:%r", e)
259260
return self.response_json({
@@ -278,6 +279,8 @@ def req_token_login_handler(self):
278279
g.http_client.save_cloudflare_domain(cloudflare_domains)
279280
if g.tls_relay_front and tls_relay.get("ips"):
280281
g.tls_relay_front.set_ips(tls_relay["ips"])
282+
if g.seley_front:
283+
g.seley_front.set_hosts(seleys.get("hosts", {}))
281284

282285
res, reason = proxy_session.request_balance(username, password_hash, False,
283286
update_server=True, promoter="")

0 commit comments

Comments
 (0)