diff options
| author | Chris Ball <chris@printf.net> | 2015-05-28 12:08:21 -0400 |
|---|---|---|
| committer | Chris Ball <chris@printf.net> | 2015-05-28 12:08:29 -0400 |
| commit | 4d990ce5e25dda0b7d5730b26d932c866694f356 (patch) | |
| tree | 97d7135a70bae82c8d66ee20c3e54d98107598b6 | |
| parent | 2dc46f57a736b238e65b46f7481f8d6c59aca175 (diff) | |
Use new bootstrap servers
| -rwxr-xr-x | git-remote-gittorrent | 5 | ||||
| -rwxr-xr-x | gittorrentd | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/git-remote-gittorrent b/git-remote-gittorrent index 2716953..ef74a21 100755 --- a/git-remote-gittorrent +++ b/git-remote-gittorrent @@ -19,8 +19,9 @@ function die (error) { // Gotta enable color manually because stdout isn't a tty. var chalk = new Chalk.constructor({enabled: true}); +var bootstrap = ['dht.gittorrent.org:6881', 'core.gittorrent.org:6881'] var dht = new DHT({ - bootstrap: ['three.printf.net:6882'] + bootstrap: bootstrap }) var url = process.argv[3] @@ -101,7 +102,7 @@ function get_infohash (ref) { wire.ut_gittorrent.on('receivedTorrent', function (infoHash) { var client = new WebTorrent({ dht: { - bootstrap: ['three.printf.net:6882'] + bootstrap: bootstrap }, tracker: false }) diff --git a/gittorrentd b/gittorrentd index 1e2352a..b5c9e7d 100755 --- a/gittorrentd +++ b/gittorrentd @@ -18,8 +18,10 @@ function die (error) { process.exit(1) } +var bootstrap = ['dht.gittorrent.org:6881', 'core.gittorrent.org:6881'] + var dht = new DHT({ - bootstrap: ['three.printf.net:6881'] + bootstrap: bootstrap }) dht.listen(6882) @@ -175,7 +177,7 @@ dht.on('ready', function () { } else { console.error('Finished writing ' + filename) var webtorrent = new WebTorrent({ - dht: {bootstrap: ['three.printf.net:6882']}, + dht: {bootstrap: bootstrap}, tracker: false }) webtorrent.seed(filename, function onTorrent (torrent) { |
