Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 3de2ae9

Browse files
author
mjseidel
committed
Change conditional to match syntax in node.cc:2903
Additionally, fix previous commit's bug of disallowing 1024 and 65535, which are legal debug ports.
1 parent c8f6056 commit 3de2ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cluster.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function masterInit() {
307307
workerEnv = util._extend(workerEnv, env);
308308
workerEnv.NODE_UNIQUE_ID = '' + id;
309309

310-
if (1024 < debugPort < 65535) {
310+
if !(debug_port < 1024 || debug_port > 65535) { // If port in range according to node.cc:2903
311311
for (var i = 0; i < execArgv.length; i++) {
312312
var match = execArgv[i].match(/^(--debug|--debug-brk)(=\d+)?$/);
313313

0 commit comments

Comments
 (0)