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: #191
Refs: #189
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
  • Loading branch information
aqrln authored and belochub committed Jan 22, 2018
1 parent 467081e commit 29c9ced
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 29c9ced

Please sign in to comment.