diff --git a/bin/stunneld.js b/bin/stunneld.js index 3e7b63f..b48888b 100755 --- a/bin/stunneld.js +++ b/bin/stunneld.js @@ -101,7 +101,7 @@ if (!program.servernames.length) { } program.ports = Object.keys(portsMap); -if (!opts.ports.length) { +if (!program.ports.length) { program.ports = [ 80, 443 ]; }