From 7f4923f3cfb69b5524404ec13a22ad056309b855 Mon Sep 17 00:00:00 2001 From: shelld3v <59408894+shelld3v@users.noreply.github.com> Date: Sun, 2 May 2021 23:04:40 +0700 Subject: [PATCH 1/2] Add command line option: IgnoreCert --- allocate.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/allocate.go b/allocate.go index ce647255..299e30f3 100644 --- a/allocate.go +++ b/allocate.go @@ -404,6 +404,12 @@ func UserAgent(userAgent string) ExecAllocatorOption { return Flag("user-agent", userAgent) } +// IgnoreCert is the command line option to ignore errors with the SSL +// certificate +func IgnoreCert(a *ExecAllocator) { + Flag("ignore-certificate-errors", true)(a) +} + // NoSandbox is the Chrome comamnd line option to disable the sandbox. func NoSandbox(a *ExecAllocator) { Flag("no-sandbox", true)(a) From d09db0a0be21396987b61f1c6f6375e3d5724191 Mon Sep 17 00:00:00 2001 From: shelld3v <59408894+shelld3v@users.noreply.github.com> Date: Mon, 3 May 2021 00:01:07 +0700 Subject: [PATCH 2/2] Rename option --- allocate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/allocate.go b/allocate.go index 299e30f3..7bf947c7 100644 --- a/allocate.go +++ b/allocate.go @@ -404,9 +404,9 @@ func UserAgent(userAgent string) ExecAllocatorOption { return Flag("user-agent", userAgent) } -// IgnoreCert is the command line option to ignore errors with the SSL -// certificate -func IgnoreCert(a *ExecAllocator) { +// IgnoreCertErrors is the command line option to ignore errors with the +// SSL certificate +func IgnoreCertErrors(a *ExecAllocator) { Flag("ignore-certificate-errors", true)(a) }