aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarissa McKelvey <karissa@users.noreply.github.com>2016-03-02 14:23:11 -0600
committerKarissa McKelvey <karissa@users.noreply.github.com>2016-03-02 14:23:11 -0600
commitdd8439072932efc944bb289da62a0db94f05a386 (patch)
tree019a45c7bba71cd91ff2aec4c5995629e9cc648b
parent6b78edc095ea393e7498ba5dc1525df81dd6b51a (diff)
downloaddat-docs-dd8439072932efc944bb289da62a0db94f05a386.tar.gz
dat-docs-dd8439072932efc944bb289da62a0db94f05a386.zip
the link needs to be a new hex buffer when passed to join
-rw-r--r--diy-dat.md4
1 files 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
+```