Skip to content

Commit 34b8294

Browse files
authored
Bind to a random UDP port (#8)
1 parent 7df3e5e commit 34b8294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class TuyaLink {
335335
this.udpClient.on('listening', function () {
336336
this.setBroadcast(true);
337337
});
338-
this.udpClient.bind(63145);
338+
this.udpClient.bind(0);
339339
}
340340

341341
// 0-filled buffer

0 commit comments

Comments
 (0)