Skip to content

Commit

Permalink
tcp: fixup "fix listening on port 0"
Browse files Browse the repository at this point in the history
PR-URL: metarhia/jstp#191
Refs: metarhia/jstp#189
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
  • Loading branch information
aqrln committed May 29, 2017
1 parent bd9b88b commit ae5e2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transport.tcp.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tcp.createServer = (config, applications, authCallback) => {
if (typeof(config) === 'number') {
config = { port: config };
}
if (!config.port) {
if (config.port === undefined) {
throw new Error('Port number must be specified');
}
if (config.path) {
Expand Down

0 comments on commit ae5e2ff

Please sign in to comment.