Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
feat(ipfs): add more relays
Browse files Browse the repository at this point in the history
  • Loading branch information
0x77dev committed Jan 27, 2022
1 parent f7e2f9a commit 41d10e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/ipfs/src/addresses.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export const listen = [
'/dns4/dstack-relay.herokuapp.com/tcp/443/wss/p2p-webrtc-star/'
'/dns4/dstack-relay.herokuapp.com/tcp/443/wss/p2p-webrtc-star/',
'/dns4/star.thedisco.zone/tcp/9090/wss/p2p-webrtc-star/',
'/dns6/star.thedisco.zone/tcp/9090/wss/p2p-webrtc-star',
'/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star/',
'/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star/'
]
6 changes: 5 additions & 1 deletion packages/ipfs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export const create = (options?: Options, wrtc?: any): Promise<IPFS.IPFS> => {
Addresses: {
Swarm: listen,
},
Bootstrap: ['/dns4/dstack-relay.herokuapp.com/tcp/443/wss/p2p-webrtc-star/p2p/QmV2uXBKbii29iJKHKVy8sx5m49qdDTBYNybVoa5uLJtrf'],
Bootstrap: [
'/dns4/dstack-relay.herokuapp.com/tcp/443/wss/p2p-webrtc-star/p2p/QmV2uXBKbii29iJKHKVy8sx5m49qdDTBYNybVoa5uLJtrf',
'/dns4/ipfs.thedisco.zone/tcp/4430/wss/p2p/12D3KooWChhhfGdB9GJy1GbhghAAKCUR99oCymMEVS4eUcEy67nt',
'/dns6/ipfs.thedisco.zone/tcp/4430/wss/p2p/12D3KooWChhhfGdB9GJy1GbhghAAKCUR99oCymMEVS4eUcEy67nt'
],
...options?.config
},
...options,
Expand Down
6 changes: 0 additions & 6 deletions packages/relay/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ const run = async () => {
enabled: true,
active: true
},
},
config: {
Addresses: {
Swarm: process.env['DNS_NAME'] ? [`/dns4/${process.env['DNS_NAME']}/tcp/443/wss/p2p-webrtc-star`] : ['/dns4/localhost/tcp/9090/ws/p2p-webrtc-star/']
},
Bootstrap: []
}
}, wrtc)

Expand Down

0 comments on commit 41d10e4

Please sign in to comment.