fix UDPSocket bind for new config layout

This commit is contained in:
2022-12-30 15:02:48 -06:00
parent f08f3b53df
commit 620e0f7c04
+1 -1
View File
@@ -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) => {