enable queries by default when mix enabled or they won't work in standalone mode

This commit is contained in:
gmega 2026-06-17 14:05:51 -03:00
parent 0e8c4e66d9
commit 1543e31317
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

@ -361,6 +361,11 @@ proc new*(
switch.mount(network)
switch.mount(manifestProto)
# Enables private queries by default when mix is enabled.
if config.mixEnabled:
info "Enabling private queries over DHT by default", enabled = config.mixEnabled
discard discovery.togglePrivateQueries(true)
StorageServer(
config: config,
storageNode: storageNode,