diff --git a/app.js b/app.js index 962f7cd..3e6f03c 100755 --- a/app.js +++ b/app.js @@ -183,9 +183,9 @@ var ontorrent = function (torrent) { engine.server.on('listening', function () { var host = argv.hostname || address() - 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, '') + var href = 'http://' + host + ':' + engine.server.address().port + '/' + encodeURI(filename) + var localHref = 'http://localhost:' + engine.server.address().port + '/' + encodeURI(filename) var filelength = engine.server.index.length var player = null var paused = false