Use DNS multiaddr

Makes it much easier to identify the node you're connecting to
This commit is contained in:
Basti 2020-10-26 09:16:00 +01:00
parent 9c34e4c913
commit ef1ae5add7
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
1 changed files with 1 additions and 2 deletions

View File

@ -6,9 +6,8 @@ const debug = require('debug')('ipfs-pinner');
const { inspect } = require('util');
// TODO make configurable
// barnard.kosmos.org
const peerId = "QmbqZCZ2RzVr4r1UEdFak6ra76kHxtGmfV9r3e1Ev6Tj5D";
const peerAddrs = [ "/ip4/104.248.95.16/tcp/4001" ];
const peerAddrs = [ "/dns4/barnard.kosmos.org/tcp/4001" ];
const bootstrapNode = `${peerAddrs[0]}/ipfs/${peerId}`;
const peerConfig = { "ID": peerId, "Addrs": [ peerAddrs ] };