diff options
| author | Chris Ball <chris@printf.net> | 2015-05-24 07:57:17 +0000 |
|---|---|---|
| committer | Chris Ball <chris@printf.net> | 2015-05-24 07:57:17 +0000 |
| commit | fc066db2303134bd80ffe703d43153e681633c42 (patch) | |
| tree | 7b5c766173fe522159763c5dba4c0727e9fb2e82 | |
| parent | f9792f2da9291cd03160f4e579995326eb383d6e (diff) | |
Fix up new Wire display
| -rwxr-xr-x | git-remote-gitswarm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-remote-gitswarm b/git-remote-gitswarm index 47ea8ea..815d6f7 100755 --- a/git-remote-gitswarm +++ b/git-remote-gitswarm @@ -69,8 +69,8 @@ exec('git ls-remote ' + url + ' HEAD', function (err, stdout, stderr) { }) var swarm = new Swarm(parsed.infoHash, 'cafebabecafebabecafecafebabecafebabecafe') - swarm.on('wire', function (wire) { - console.warn('Adding swarm peer: ' + chalk.green(wire.remoteAddress) + '\n') + swarm.on('wire', function (wire, addr) { + console.warn('Adding swarm peer: ' + chalk.green(addr) + '\n') wire.use(ut_gitswarm()) wire.ut_gitswarm.on('handshake', function () { wire.ut_gitswarm.ask(parsed.infoHash) |
