From 1c46ec470726bae9e21f4e30be8fb0b5008ac981 Mon Sep 17 00:00:00 2001 From: Chris Ball Date: Wed, 13 May 2015 19:24:45 -0400 Subject: Actually fix wire.use --- git-remote-gitswarm | 2 +- gitswarmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/git-remote-gitswarm b/git-remote-gitswarm index 259baa9..f6b1aed 100755 --- a/git-remote-gitswarm +++ b/git-remote-gitswarm @@ -49,7 +49,7 @@ exec('git ls-remote ' + url + ' HEAD', function (err, stdout, stderr) { var swarm = new Swarm(parsed.infoHash, 'cafebabecafebabecafecafebabecafebabecafe') swarm.on('wire', function (wire) { console.error('we got a wire') - wire.use(ut_gitswarm) + wire.use(ut_gitswarm()) // wire.ut_gitswarm.askforsha(parsed.infoHash) }) }) diff --git a/gitswarmd b/gitswarmd index 4d9acbb..7eb1f06 100755 --- a/gitswarmd +++ b/gitswarmd @@ -67,7 +67,7 @@ dht.on('ready', function () { wire.on('handshake', function (infoHash, peerId) { console.log('Received handshake for ' + infoHash) wire.handshake(new Buffer(infoHash), new Buffer(peerId)) - wire.use(ut_gitswarm) + wire.use(ut_gitswarm()) }) }).listen(30000) }) -- cgit v1.2.3