mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
Add an insecure_disable_tls_host_verification command line option
When set, this disables the host verification of all HTTP requests. Available for both the fetch and serve mode. Also introduced an App.Config, for future command line options which need to be passed more deeply into the code.
This commit is contained in:
@@ -213,7 +213,7 @@ fn serveHTTPS(address: std.net.Address) !void {
|
||||
|
||||
fn serveCDP(address: std.net.Address) !void {
|
||||
const App = @import("app.zig").App;
|
||||
var app = try App.init(gpa.allocator(), .serve);
|
||||
var app = try App.init(gpa.allocator(), .{.run_mode = .serve});
|
||||
defer app.deinit();
|
||||
|
||||
const server = @import("server.zig");
|
||||
|
||||
Reference in New Issue
Block a user