Skip to content

Commit

Permalink
fix(MQTT): Keep using IPv4 instead of IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
csuermann committed Aug 17, 2024
1 parent b62483a commit 4491321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
node_modules
node_modules*
test.js
.vscode/launch.json
1 change: 1 addition & 0 deletions MqttClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class MqttClient extends EventEmitter {
resubscribe: false,
clean: true,
protocolVersion: 5,
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.
}

this.client = null
Expand Down

0 comments on commit 4491321

Please sign in to comment.