Skip to content

Commit 7197ce3

Browse files
author
nicola
committed
setting 3456 to be the default port
1 parent 137c3f4 commit 7197ce3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎bin/ldnode.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ var argv = require('nomnom')
4747
abbr: 'K',
4848
full: 'ssl-key'
4949
})
50-
.option('ssl-cert', {
50+
.option('sslCert', {
51+
full: 'ssl-cert',
5152
help: 'Path to the ssl cert',
5253
abbr: 'C'
5354
})
@@ -94,7 +95,9 @@ if (argv.noSsl) {
9495
// Set up debug environment
9596
process.env.DEBUG = argv.verbose ? 'ldnode:*' : false;
9697
var debug = require('../logging').server;
97-
var ldnode = require('../index');
98+
99+
// Set up port
100+
argv.port = argv.port || 3456;
98101

99102
// Signal handling (e.g. CTRL+C)
100103
if (process.platform !== 'win32') {
@@ -106,6 +109,7 @@ if (process.platform !== 'win32') {
106109
}
107110

108111
// Finally starting ldnode
112+
var ldnode = require('../index');
109113
var app = ldnode.createServer(argv);
110114
app.listen(argv.port, function() {
111115
debug('LDP started on port ' + argv.port);

0 commit comments

Comments
 (0)