mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
use the new config property to start DHT
This commit is contained in:
parent
cf1c68f290
commit
28fa11bcd5
@ -19,8 +19,10 @@ async function main() {
|
||||
})
|
||||
|
||||
// start DHT hyperswarm when DHT_TOPIC is set in .env
|
||||
if (CONFIG.DHT_TOPIC) {
|
||||
await startDHT(CONFIG.DHT_TOPIC) // con,
|
||||
if (CONFIG.FEDERATE_DHT_TOPIC) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`Federation/DHT active on ${CONFIG.FEDERATE_DHT_TOPIC}`)
|
||||
await startDHT(CONFIG.FEDERATE_DHT_TOPIC) // con,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user