diff --git a/README.md b/README.md index 25eb3d4..7fa4cd6 100644 --- a/README.md +++ b/README.md @@ -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 + ``` + diff --git a/main.go b/main.go index e054c17..4facfcb 100644 --- a/main.go +++ b/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) } diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index e69de29..0000000 diff --git a/setup.sh b/run.sh similarity index 75% rename from setup.sh rename to run.sh index 2fa8f61..a5dcd39 100644 --- a/setup.sh +++ b/run.sh @@ -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