mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 09:50:21 +08:00
fix(proxy): 自动注册节点时按 ip+port 匹配而非 name
This commit is contained in:
@@ -257,7 +257,11 @@ class ProxyNodeService:
|
|||||||
|
|
||||||
node = (
|
node = (
|
||||||
db.query(ProxyNode)
|
db.query(ProxyNode)
|
||||||
.filter(ProxyNode.name == name, ProxyNode.is_manual == False) # noqa: E712
|
.filter(
|
||||||
|
ProxyNode.ip == ip,
|
||||||
|
ProxyNode.port == port,
|
||||||
|
ProxyNode.is_manual == False, # noqa: E712
|
||||||
|
)
|
||||||
.first()
|
.first()
|
||||||
)
|
)
|
||||||
if node:
|
if node:
|
||||||
|
|||||||
Reference in New Issue
Block a user