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

@@ -8,7 +8,8 @@ a plugin which complements the project [P2PRC](https://p2prc.akilan.io)
Based on the fork:
https://github.com/Akilan1999/laplace/tree/keyboard_mouse
## Start webrtc screenshare automatically
## Installation instruction
```
chromium --auto-select-desktop-capture-source Entire screen --url https://0.0.0.0:8888/?mode=headless
```

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)
}

View File

View File

@@ -4,7 +4,7 @@ go build .
./laplace -setconfig
./laplace -tls -addr 0.0.0.0:8888 &
./laplace -headless -addr 0.0.0.0:8888 &
./laplace -headless -addr 192.168.0.175:8888 &
sleep 2