mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
fix(proxy): 自动注册节点时按 ip+port 匹配而非 name
This commit is contained in:
@@ -257,7 +257,11 @@ class ProxyNodeService:
|
||||
|
||||
node = (
|
||||
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()
|
||||
)
|
||||
if node:
|
||||
|
||||
Reference in New Issue
Block a user