Skip to content

Commit 3d4f8d2

Browse files
Filter out excluded device IDs
1 parent 86bbdd4 commit 3d4f8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if (argv.p === true) {
6969
argv.p = readlineSync.question('MQTT Password: ', {hideEchoBack: true, mask: ''});
7070
}
7171

72-
const idsToConnectTo = argv._.map(name => name.replace(/:/g, ''));
72+
const idsToConnectTo = argv._.filter(name => !name.startsWith('_')).map(name => name.replace(/:/g, ''));
7373
const idsToIgnore = argv._.filter(name => name.startsWith('_')).map(id => id.substr(1));
7474

7575
const manualIdsWereSpecified = idsToConnectTo.length !== 0;

0 commit comments

Comments
 (0)