debug-proxy-pass (Day-Helper-2025-09-08)
This commit is contained in:
@ -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}");
|
||||
|
Reference in New Issue
Block a user