forked from DECA/decasearch
Fix Bug when a node is offline
This commit is contained in:
parent
c6612508e9
commit
0e60631d8f
20
src/App.js
20
src/App.js
|
@ -144,9 +144,29 @@ class App extends React.Component {
|
|||
console.log('IPFS node ready with id ' + info.id)
|
||||
try{
|
||||
await ipfs.swarm.connect('/dns4/node5.deca.green/tcp/443/wss/p2p/QmZL1otpiCzWMEJTHXbQ5Hb4aFE7TKLjAuuBAAet1WAgtD');
|
||||
}catch (error)
|
||||
{
|
||||
console.log(error)
|
||||
}
|
||||
try{
|
||||
await ipfs.swarm.connect('/dns4/node0.deca.green/tcp/443/wss/p2p/Qmd4Cv2fNwixP6cabEnTVFkF57GUGD6VBEcDhUkqHPG4X9');
|
||||
}catch (error)
|
||||
{
|
||||
console.log(error)
|
||||
}
|
||||
try{
|
||||
await ipfs.swarm.connect('/dns4/node4.deca.green/tcp/443/wss/p2p/QmQAbhxMCjQpNrdU3xJYZjjmd7bHXUGcLx2o7wfpvvzJvc');
|
||||
}catch (error)
|
||||
{
|
||||
console.log(error)
|
||||
}
|
||||
try{
|
||||
await ipfs.swarm.connect("/dns4/node2.deca.green/tcp/443/wss/p2p/QmfBASmqe3Az9AUjCxx3dtomSmbZEiJCsXusPxznjNnjU5");
|
||||
}catch (error)
|
||||
{
|
||||
console.log(error)
|
||||
}
|
||||
try{
|
||||
await ipfs.swarm.connect("/dns4/node.neetsec.com/tcp/443/wss/p2p/QmYDVy4LE5wsNecmHPpyUp8MDuSRtpYtQuDjpLhvRjfKTj");
|
||||
}catch (error)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue