fix: pre-built routes now respect source ports for finding routes

This commit is contained in:
Andrew Welker 2026-04-17 10:27:54 -05:00
parent db14a614bc
commit 2197dc489d
5 changed files with 94 additions and 66 deletions

View file

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO.Compression;
using System.Linq;
using System.Reflection;
@ -462,7 +461,7 @@ namespace PepperDash.Essentials
{
try
{
if (args.Contains("?"))
if (!string.IsNullOrEmpty(args) && args.Contains("?"))
{
CrestronConsole.ConsoleCommandResponse("Usage: listtielines [signaltype]\r\n");
CrestronConsole.ConsoleCommandResponse("Signal types: Audio, Video, SecondaryAudio, AudioVideo, UsbInput, UsbOutput\r\n");
@ -508,7 +507,7 @@ namespace PepperDash.Essentials
{
try
{
if (args.Contains("?"))
if (!string.IsNullOrEmpty(args) && args.Contains("?"))
{
CrestronConsole.ConsoleCommandResponse("Usage: visualizeroutes [signaltype] [-s source] [-d destination]\r\n");
CrestronConsole.ConsoleCommandResponse(" signaltype: Audio, Video, AudioVideo, etc.\r\n");
@ -557,7 +556,7 @@ namespace PepperDash.Essentials
{
try
{
if (args.Contains("?"))
if (!string.IsNullOrEmpty(args) && args.Contains("?"))
{
CrestronConsole.ConsoleCommandResponse("Usage: visualizecurrentroutes [signaltype] [-s source] [-d destination]\r\n");
CrestronConsole.ConsoleCommandResponse(" signaltype: Audio, Video, AudioVideo, etc.\r\n");