Skip to content

Commit 097b8a9

Browse files
committed
5.7.4 fix seley bug.
1 parent a6dc8b5 commit 097b8a9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

code/default/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.7.3
1+
5.7.4

code/default/x_tunnel/local/front_dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def get_front(host, timeout):
114114

115115
dispatcher = front.get_dispatcher(host)
116116
if not dispatcher:
117-
xlog.warn("get dispatcher from %s fail for %s", front.name, host)
117+
# xlog.warn("get dispatcher from %s fail for %s", front.name, host)
118118
continue
119119

120120
score = dispatcher.get_score()

code/default/x_tunnel/local/proxy_session.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,11 @@ def request_balance(account=None, password=None, is_register=False, update_serve
10861086
g.openai_balance = info["openai_balance"]
10871087
g.openai_proxies = info["openai_proxies"]
10881088
g.tls_relays = info["tls_relays"]
1089-
if g.tls_relay_front and g.tls_relays.get("ips"):
1089+
seleys = info.get("seleys", {})
1090+
if g.tls_relay_front:
10901091
g.tls_relay_front.set_ips(g.tls_relays["ips"])
1092+
if g.seley_front:
1093+
g.seley_front.set_hosts(seleys.get("hosts", {}))
10911094
xlog.info("request_balance host:%s port:%d balance:%f quota:%f", g.server_host, g.server_port,
10921095
g.balance, g.quota)
10931096
return True, "success"

0 commit comments

Comments
 (0)