summaryrefslogtreecommitdiff
path: root/lib/cluster.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cluster.js')
-rw-r--r--lib/cluster.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cluster.js b/lib/cluster.js
index ba13daadbc..97a4eb456b 100644
--- a/lib/cluster.js
+++ b/lib/cluster.js
@@ -308,7 +308,7 @@ function masterInit() {
workerEnv.NODE_UNIQUE_ID = '' + id;
for (var i = 0; i < execArgv.length; i++) {
- var match = execArgv[i].match(/^(--debug|--debug-brk)(=\d+)?$/);
+ var match = execArgv[i].match(/^(--debug|--debug-(brk|port))(=\d+)?$/);
if (match) {
execArgv[i] = match[1] + '=' + debugPort;