chrome headless ignore certificate warning
This commit is contained in:
@@ -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
|
||||
|
||||
```
|
||||
|
||||
|
||||
2
main.go
2
main.go
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user