From 4d990ce5e25dda0b7d5730b26d932c866694f356 Mon Sep 17 00:00:00 2001 From: Chris Ball Date: Thu, 28 May 2015 12:08:21 -0400 Subject: Use new bootstrap servers --- git-remote-gittorrent | 5 +++-- 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) { -- cgit v1.2.3