diff options
| author | Chris Ball <chris@printf.net> | 2015-05-13 19:24:45 -0400 |
|---|---|---|
| committer | Chris Ball <chris@printf.net> | 2015-05-13 19:24:45 -0400 |
| commit | 1c46ec470726bae9e21f4e30be8fb0b5008ac981 (patch) | |
| tree | fb565bb9c82b4662b65e43fb3f2e051952c7faed | |
| parent | a4a9ea1e267396a3d958462f54716f61650281a7 (diff) | |
Actually fix wire.use
| -rwxr-xr-x | git-remote-gitswarm | 2 | ||||
| -rwxr-xr-x | 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) }) }) @@ -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) }) |
