feat: Add LICENSE file and refactor MITM response handling and tracing.

This commit is contained in:
Nikketryhard
2026-02-18 02:43:05 -06:00
parent c0c12de83c
commit ad0aa1556c
26 changed files with 1132 additions and 569 deletions

View File

@@ -100,7 +100,14 @@ fn curl_get(path: &str) -> Option<String> {
fn curl_post(path: &str, body: &str) -> Option<String> {
let url = format!("{}{}", base_url(), path);
Command::new("curl")
.args(["-sf", &url, "-H", "Content-Type: application/json", "-d", body])
.args([
"-sf",
&url,
"-H",
"Content-Type: application/json",
"-d",
body,
])
.output()
.ok()
.filter(|o| o.status.success())
@@ -188,7 +195,9 @@ fn do_status() {
let text = String::from_utf8_lossy(&o.stdout);
// Print first 6 lines
for (i, line) in text.lines().enumerate() {
if i >= 6 { break; }
if i >= 6 {
break;
}
println!("{line}");
}
}