debug-proxy-pass (Day-Helper-2025-09-08)

This commit is contained in:
2025-09-08 17:30:38 -07:00
parent 6102da7266
commit 55aa7db97e
7 changed files with 395 additions and 11 deletions

View File

@ -217,10 +217,12 @@ internal static partial class Helper20250519 {
File.WriteAllText(args[2], "{}");
}
string? json = !args[2].EndsWith("input.json") ? null : File.ReadAllText(args[2]);
Input input = string.IsNullOrEmpty(json)
? Input.Get(args)
: JsonSerializer.Deserialize(json, Helper20250519Input.Default.Input)
?? throw new Exception();
Input input;
if (string.IsNullOrEmpty(json)) {
input = Input.Get(args);
} else {
input = JsonSerializer.Deserialize(json, Helper20250519Input.Default.Input) ?? throw new Exception();
}
Logic? logic = input.Segments.Length != 6 ? null : Logic.Get(input.Segments);
if (logic is null || input.BaseAddresses.Length == 0) {
logger.LogInformation($"Invalid input!{Environment.NewLine}{input}");