support CDP proxy override

This commit is contained in:
Karl Seguin
2025-08-06 11:49:57 +08:00
parent 1e612e4166
commit c96fb3c2f2
4 changed files with 60 additions and 15 deletions

View File

@@ -258,7 +258,7 @@ const Command = struct {
};
fn printUsageAndExit(self: *const Command, success: bool) void {
// MAX_HELP_LEN|
// MAX_HELP_LEN|
const common_options =
\\
\\--insecure_disable_tls_host_verification
@@ -303,7 +303,7 @@ const Command = struct {
\\
;
// MAX_HELP_LEN|
// MAX_HELP_LEN|
const usage =
\\usage: {s} command [options] [URL]
\\
@@ -768,7 +768,7 @@ fn serveCDP(address: std.net.Address, platform: *const Platform) !void {
.run_mode = .serve,
.tls_verify_host = false,
.platform = platform,
.max_concurrent_transfers = 2,
.http_max_concurrent = 2,
});
defer app.deinit();