mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-26 12:29:30 +00:00
fix(storage): only enable private queries when DHT mix proxies are configured (#1465)
Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
This commit is contained in:
parent
814e7a5436
commit
ceea23550b
@ -120,8 +120,10 @@ proc start*(s: StorageServer) {.async.} =
|
||||
|
||||
s.storageNode.discovery.mixProto = mixProto
|
||||
|
||||
discard s.storageNode.discovery.togglePrivateQueries(s.config.mixEnabled).valueOr:
|
||||
raise newException(StorageError, "Failed to enable private queries: " & error.msg)
|
||||
if s.config.dhtMixProxies.len > 0:
|
||||
discard s.storageNode.discovery.togglePrivateQueries(true).valueOr:
|
||||
raise
|
||||
newException(StorageError, "Failed to enable private queries: " & error.msg)
|
||||
|
||||
s.storageNode.engine.network.excludeRelays(relayPool.keys.toSeq)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user