Skip to content

Commit

Permalink
5.7.4 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 a6dc8b5 commit 097b8a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/default/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.3
5.7.4
2 changes: 1 addition & 1 deletion code/default/x_tunnel/local/front_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_front(host, timeout):

dispatcher = front.get_dispatcher(host)
if not dispatcher:
xlog.warn("get dispatcher from %s fail for %s", front.name, host)
# xlog.warn("get dispatcher from %s fail for %s", front.name, host)
continue

score = dispatcher.get_score()
Expand Down
5 changes: 4 additions & 1 deletion code/default/x_tunnel/local/proxy_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,11 @@ def request_balance(account=None, password=None, is_register=False, update_serve
g.openai_balance = info["openai_balance"]
g.openai_proxies = info["openai_proxies"]
g.tls_relays = info["tls_relays"]
if g.tls_relay_front and g.tls_relays.get("ips"):
seleys = info.get("seleys", {})
if g.tls_relay_front:
g.tls_relay_front.set_ips(g.tls_relays["ips"])
if g.seley_front:
g.seley_front.set_hosts(seleys.get("hosts", {}))
xlog.info("request_balance host:%s port:%d balance:%f quota:%f", g.server_host, g.server_port,
g.balance, g.quota)
return True, "success"
Expand Down

0 comments on commit 097b8a9

Please sign in to comment.