From dd8439072932efc944bb289da62a0db94f05a386 Mon Sep 17 00:00:00 2001 From: Karissa McKelvey Date: Wed, 2 Mar 2016 14:23:11 -0600 Subject: the link needs to be a new hex buffer when passed to join --- diy-dat.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diy-dat.md b/diy-dat.md index 5ce9118..77a644d 100644 --- a/diy-dat.md +++ b/diy-dat.md @@ -48,7 +48,7 @@ var swarm = Swarm({ swarm.once('listening', function () { console.log('joining', link) // join the swarm - swarm.join(link) + swarm.join(new Buffer(link, 'hex')) // tell hyperdrive to start downloading/uploading in ./data var archive = drive.get(link, process.cwd() + '/data') archive.ready(function (err) { @@ -70,4 +70,4 @@ swarm.once('listening', function () { }) swarm.listen(DEFAULT_LOCAL_PORT) -``` \ No newline at end of file +``` -- cgit v1.2.3