Skip to content

Commit 4491321

Browse files
committed
fix(MQTT): Keep using IPv4 instead of IPv6
1 parent b62483a commit 4491321

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.DS_Store
2-
node_modules
2+
node_modules*
33
test.js
44
.vscode/launch.json

MqttClient.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class MqttClient extends EventEmitter {
1414
resubscribe: false,
1515
clean: true,
1616
protocolVersion: 5,
17+
family: 4, //Version of IP stack. Must be 4, 6, or 0. The value 0 indicates that both IPv4 and IPv6 addresses are allowed. Default: 0.
1718
}
1819

1920
this.client = null

0 commit comments

Comments
 (0)