force https to allow screenshare

This commit is contained in:
2023-02-25 01:49:53 +00:00
parent e1bd8a3cb9
commit d1745c9fda
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ func main() {
fmt.Println(addr)
// Starting screen share headless
cmd := exec.Command("chromium-browser", "--no-sandbox", "--auto-select-desktop-capture-source=Entire screen", "--unsafely-treat-insecure-origin-as-secure", "http://"+*addr+":"+*port+"/?mode=headless", "--allow-http-screen-capture")
cmd := exec.Command("chromium-browser", "--no-sandbox", "--auto-select-desktop-capture-source=Entire screen", "--url", "https://"+*addr+":"+*port+"/?mode=headless")
if err := cmd.Start(); err != nil {
log.Fatalln(err)
}