fix: only adjust IP if processor is a CS processor

This commit is contained in:
Andrew Welker
2025-07-28 11:48:00 -05:00
parent c732eb48f2
commit d0ca6721f5

View File

@@ -327,7 +327,7 @@ namespace PepperDash.Essentials.WebSocketServer
}
string ip = processorIp;
if (touchpanel.Touchpanel is IMobileControlCrestronTouchpanelController crestronTouchpanel)
if (touchpanel.Touchpanel is IMobileControlCrestronTouchpanelController crestronTouchpanel && csIpAddress != null)
{
ip = crestronTouchpanel.ConnectedIps.Any(ipInfo =>
{