chrome headless ignore certificate warning

This commit is contained in:
2021-07-25 08:54:49 +04:00
parent a0971f13cf
commit 345a657bbd
4 changed files with 5 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ func main() {
// Running in headless mode
if *headless {
// Starting screen share headless
cmd := exec.Command("chromium" ,"--auto-select-desktop-capture-source=Entire screen","--url","https://" + *addr + "/?mode=headless")
cmd := exec.Command("chromium" ,"--auto-select-desktop-capture-source=Entire screen","--url","https://" + *addr + "/?mode=headless","--ignore-certificate-errors")
if err := cmd.Run(); err != nil {
log.Fatalln(err)
}