From 620e0f7c0436d4cc37cb027736adbd2421b698d1 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Fri, 30 Dec 2022 15:02:48 -0600 Subject: [PATCH] fix UDPSocket bind for new config layout --- src/device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.js b/src/device.js index db4e67c..6baf5e4 100644 --- a/src/device.js +++ b/src/device.js @@ -173,7 +173,7 @@ function initDeviceConnection(id) { } else if (plugins[type].config.connectionType === 'UDPsocket') { device.connection = udp.createSocket('udp4'); - device.connection.bind({ port: plugins[type].defaultPort }, () => { + device.connection.bind({ port: plugins[type].config.defaultPort }, () => { plugins[type].ready(device); device.connection.on('message', (msg, info) => {