Skip to content

Commit 5bbb8a2

Browse files
committed
Added NetworkChangeAdapters validation on startup
1 parent 8ad6de6 commit 5bbb8a2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Program.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,21 @@ static void Clear()
136136
Console.WriteLine(Environment.NewLine);
137137
}
138138
}
139+
140+
if (string.IsNullOrEmpty(settings.NetworkChangeAdapters))
141+
{
142+
WriteColor(@"[//--No Networkadapters-------------------------------------------]", ConsoleColor.DarkRed);
143+
WriteColor($"[//:] Please insert Networkadapters (\"NetworkChangeAdapters\") in the settings.json", ConsoleColor.DarkRed);
144+
WriteColor(@"[//---------------------------------------------------------------]", ConsoleColor.DarkRed);
145+
if (!Debugger.IsAttached)
146+
{
147+
return;
148+
}
149+
else
150+
{
151+
Console.WriteLine(Environment.NewLine);
152+
}
153+
}
139154
}
140155

141156
/// <summary>

0 commit comments

Comments
 (0)