SignalK / signalk-server

An implementation of a Signal K central server for boats.
http://signalk.org
Apache License 2.0
307 stars 152 forks source link

WebSocket SourceRef is not handled correctly in source priorities #1747

Open tkurki opened 4 months ago

tkurki commented 4 months ago

SourcePriorities uses ws-victron.local:3000.XX as the source reference, but the incoming data actually has ws-victron.local:3000.192.168.1.127 as the value, so the source priorities mechanism never works correctly.

May 30 22:23:15 2024-05-30T20:23:15.000Z signalk-server:sourcepriorities Map(2) { 'ws-victron.local:3000.XX' => { precedence: 0, timeout: '' }, 'can00.c1321419e76cf955' => { precedence: 1, timeout: '5000' } }
May 30 22:23:15 2024-05-30T20:23:15.003Z signalk-server:sourcepriorities { precedence: 1, timeout: '5000' }
May 30 22:23:15 2024-05-30T20:23:15.005Z signalk-server:sourcepriorities { precedence: Infinity, timeout: 10000 }
May 30 22:23:15 2024-05-30T20:23:15.006Z signalk-server:sourcepriorities can00.c1321419e76cf955 true
May 30 22:23:15 2024-05-30T20:23:15.008Z signalk-server:sourcepriorities environment.water.temperature:ws-victron.local:3000.192.168.1.127:3000:false:24