Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
chore: add log warning if no peer id is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Mar 26, 2020
1 parent 27c8051 commit 803b210
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ async function run () {
const peerData = fs.readFileSync(argv.peerId)
const peerId = await PeerId.createFromJSON(JSON.parse(peerData))
peerInfo = await PeerInfo.create(peerId)
} else {
log('You are using an automatically generated peer. \n\
If you want to keep the same address for the server you should provide a peerId with --peerId <jsonFilePath>')
}

// Add remaining addresses
Expand Down

0 comments on commit 803b210

Please sign in to comment.