Skip to content

Commit

Permalink
Fix DNS --seed key resolution to prevent crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Jun 20, 2020
1 parent edc42a6 commit 08b0b76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,11 @@ function start (keys, frontendConfig) {
if (!args.seed) {
fe = frontend({ client, frontendConfig })
} else {
keys.forEach((k) => {
let seedKeys = []
for (const details of client.cabals.keys()) {
seedKeys.push(details.key)
}
seedKeys.forEach((k) => {
console.log('Seeding', k)
console.log()
console.log('@: new peer')
Expand Down

0 comments on commit 08b0b76

Please sign in to comment.