aboutsummaryrefslogtreecommitdiff
path: root/git-remote-gittorrent
diff options
context:
space:
mode:
authorChris Ball <chris@printf.net>2015-06-03 16:55:59 -0400
committerChris Ball <chris@printf.net>2015-06-03 16:55:59 -0400
commite5ab153e398cd2544515f2560641b8e1f010a3a7 (patch)
tree081a63f3bdd481c16c77fc64ca93bfa185eaad55 /git-remote-gittorrent
parent60877cc734120057a069ca5ba220ddf694774977 (diff)
parentb9260e07932e19009ca4e9b35543a25c75a6759a (diff)
Merge pull request #42 from ralphtheninja/master
use rc to get rid of hardcoded configuration
Diffstat (limited to 'git-remote-gittorrent')
-rwxr-xr-xgit-remote-gittorrent6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-remote-gittorrent b/git-remote-gittorrent
index c567588..aeffc90 100755
--- a/git-remote-gittorrent
+++ b/git-remote-gittorrent
@@ -11,6 +11,7 @@ var Swarm = require('bittorrent-swarm')
var ut_gittorrent = require('ut_gittorrent')
var WebTorrent = require('webtorrent')
var zeroFill = require('zero-fill')
+var config = require('./config')
// BitTorrent client version string (used in peer ID).
// Generated from package.json major and minor version. For example:
@@ -28,9 +29,8 @@ 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: bootstrap
+ bootstrap: config.dht.bootstrap
})
// After building a dictionary of references (sha's to branch names), responds
@@ -180,7 +180,7 @@ function get_infohash (sha, branch) {
wire.ut_gittorrent.on('receivedTorrent', function (infoHash) {
var client = new WebTorrent({
dht: {
- bootstrap: bootstrap
+ bootstrap: config.dht.bootstrap
},
tracker: false
})