From ea51ee1b60140e6e26c1e0133b650d919a1f7eaf Mon Sep 17 00:00:00 2001 From: sevoma Date: Sun, 13 Sep 2015 18:38:19 -0400 Subject: [PATCH 1/3] Bind to localhost by default instead of local ip for security --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 91a45ed..cc6dda8 100755 --- a/app.js +++ b/app.js @@ -180,7 +180,7 @@ var ontorrent = function (torrent) { } engine.server.on('listening', function () { - var host = argv.hostname || address() + var host = argv.hostname || 'localhost' var href = 'http://' + host + ':' + engine.server.address().port + '/' var localHref = 'http://localhost:' + engine.server.address().port + '/' var filename = engine.server.index.name.split('/').pop().replace(/\{|\}/g, '') From e5f0beb93b4f65664256da3bfd6211f358672012 Mon Sep 17 00:00:00 2001 From: sevoma Date: Sun, 13 Sep 2015 18:57:19 -0400 Subject: [PATCH 2/3] Removed unused var --- app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app.js b/app.js index cc6dda8..fa4b1aa 100755 --- a/app.js +++ b/app.js @@ -5,7 +5,6 @@ var rc = require('rc') var clivas = require('clivas') var numeral = require('numeral') var os = require('os') -var address = require('network-address') var readTorrent = require('read-torrent') var proc = require('child_process') var peerflix = require('./') From 5c60827c296d77227cd14bc9487dc91975c497e8 Mon Sep 17 00:00:00 2001 From: sevoma Date: Sun, 13 Sep 2015 18:59:39 -0400 Subject: [PATCH 3/3] Removed unused package network-address --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index cc681e7..042c61c 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "inquirer": "^0.8.0", "keypress": "^0.2.1", "mime": "^1.2.11", - "network-address": "0.0.5", "numeral": "^1.5.3", "open": "0.0.5", "optimist": "^0.6.1",