use the new config property to start DHT

This commit is contained in:
Claus-Peter Hübner 2022-11-25 00:59:35 +01:00
parent cf1c68f290
commit 28fa11bcd5

View File

@ -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,
}
}