Add --no-ssl flag for bypassing SSL checking

This commit is contained in:
Manish Goregaokar 2015-03-14 16:47:42 +05:30
parent 6ba3014d9b
commit 9119bb2041
2 changed files with 13 additions and 1 deletions

View file

@ -58,6 +58,8 @@ pub struct Opts {
pub nonincremental_layout: bool,
pub nossl: bool,
pub output_file: Option<String>,
pub headless: bool,
pub hard_fail: bool,
@ -177,6 +179,7 @@ pub fn default_opts() -> Opts {
enable_experimental: false,
layout_threads: 1,
nonincremental_layout: false,
nossl: false,
output_file: None,
headless: true,
hard_fail: true,
@ -216,6 +219,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool {
getopts::optflag("x", "exit", "Exit after load flag"),
getopts::optopt("y", "layout-threads", "Number of threads to use for layout", "1"),
getopts::optflag("i", "nonincremental-layout", "Enable to turn off incremental layout."),
getopts::optflag("", "no-ssl", "Disables ssl certificate verification."),
getopts::optflag("z", "headless", "Headless mode"),
getopts::optflag("f", "hard-fail", "Exit on task failure instead of displaying about:failure"),
getopts::optflagopt("", "devtools", "Start remote devtools server on port", "6000"),
@ -291,6 +295,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool {
};
let nonincremental_layout = opt_match.opt_present("i");
let nossl = opt_match.opt_present("no-ssl");
let mut bubble_inline_sizes_separately = debug_options.contains(&"bubble-widths");
let trace_layout = debug_options.contains(&"trace-layout");
@ -325,6 +330,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool {
enable_experimental: opt_match.opt_present("e"),
layout_threads: layout_threads,
nonincremental_layout: nonincremental_layout,
nossl: nossl,
output_file: opt_match.opt_str("o"),
headless: opt_match.opt_present("z"),
hard_fail: opt_match.opt_present("f"),