holesail-share
Advanced tools
Comparing version 1.4.7 to 1.4.8
14
index.js
@@ -25,3 +25,3 @@ #!/usr/bin/env node | ||
const app = express(); | ||
const PORT = argv.live | ||
const PORT =parseInt(argv.live, 10) || 3341; | ||
@@ -242,4 +242,6 @@ // Array to store uploaded files | ||
localServer.serve(argv.live, host, () => { | ||
console.log(`Server started, Now listening on ${host}:` + argv.live); | ||
localServer.serve({port:PORT, host:host}, () => { | ||
console.log(`Server started, Now listening on ${host}:` + `${PORT}`); | ||
console.log(`Your connector is: ${argv.connector}`); | ||
@@ -266,6 +268,6 @@ console.log('Server public key:', localServer.getPublicKey()); | ||
if (!argv.port) { | ||
if (!PORT) { | ||
port = 8989 | ||
} else { | ||
port = argv.port | ||
port = PORT | ||
} | ||
@@ -281,3 +283,3 @@ //--host | ||
const pubClient = new holesailClient(connector) | ||
pubClient.connect(port, host, () => { | ||
pubClient.connect({port:port, host:host}, () => { | ||
console.log(`Client setup, access on ${host}:${port}`); | ||
@@ -284,0 +286,0 @@ console.log(`Your connector is: ${argv.connector}`); |
{ | ||
"name": "holesail-share", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"description": "A P2P based node package to share files on the Holepunch protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,3 @@ | ||
THIS REPOSITORY IS NOT READY FOR PRODUCTION USE YET, IT IS EXPERIMENTAL. | ||
# Holesail-share | ||
@@ -2,0 +4,0 @@ |
12309
83