aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+```