dat-ecosystem / dat

:floppy_disk: peer-to-peer sharing & live syncronization of files via command line
https://dat.foundation
BSD 3-Clause "New" or "Revised" License
8.24k stars 449 forks source link

Add flags to configure bootstrapping for peer discovery #1082

Open RangerMauve opened 5 years ago

RangerMauve commented 5 years ago

Feature request

Dat works great out of the box when you're on the same wifi, or are connected to the internet at large, but it's not as great when you're connected to a network that's not totally local, but isn't connected to the internet. Key uses would be something like #1066 where China was blocking traffic, or #1071 talking about mesh networks, which could be relevant to dweb camp 2019.

I was thinking it could be addressed with CLI flags added to dat clone and dat share which would be passed into discovery-swarm. Maybe just IP addresses to use for bootstrapping to start so that we can get more bang for our buck.

dat clone --bootstrap-dns 192.168.1.1:666 --bootstrap-dht 127.0.0.1:420

CC @pfrazee since this applies to Beaker

benhylau commented 5 years ago

@RangerMauve is this proposal simply to add / swap Internet bootstrap nodes? Similar to ipfs bootstrap add?

RangerMauve commented 5 years ago

Yup!

okdistribute commented 5 years ago

how about a config file which can set a lot of networking options, and those options can also be set through commandline parameters (they would be named the same?)

RangerMauve commented 5 years ago

I really like the config file idea! Maybe we could set something up on top of dat-swarm-defaults so that it can be handled in the same way across tools.

okdistribute commented 5 years ago

sweet!