force https to allow screenshare
This commit is contained in:
@@ -37,7 +37,7 @@ func BroadcastServerToBackend() error {
|
||||
respIpv4orIPv6 := Ip4or6(config.IPAddress)
|
||||
|
||||
// Adding game session information
|
||||
respIpv4orIPv6 = "http://" + respIpv4orIPv6
|
||||
respIpv4orIPv6 = "https://" + respIpv4orIPv6
|
||||
|
||||
// Get room information
|
||||
room, err := ReadRoomsFile()
|
||||
|
||||
2
main.go
2
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user