mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
implicit control is disabled by default in legacy mode.
This commit is contained in:
@@ -73,9 +73,12 @@ func (settings *RoomSettings) toEnvV3(config *config.Room, ports PortSettings) [
|
|||||||
env = append(env, "NEKO_SESSION_CONTROL_PROTECTION=true")
|
env = append(env, "NEKO_SESSION_CONTROL_PROTECTION=true")
|
||||||
}
|
}
|
||||||
|
|
||||||
// implicit control - enabled by default
|
// implicit control - enabled by default but in legacy mode disabled by default
|
||||||
|
// so we need to set it explicitly until legacy mode is removed
|
||||||
if !settings.ImplicitControl {
|
if !settings.ImplicitControl {
|
||||||
env = append(env, "NEKO_SESSION_IMPLICIT_HOSTING=false")
|
env = append(env, "NEKO_SESSION_IMPLICIT_HOSTING=false")
|
||||||
|
} else {
|
||||||
|
env = append(env, "NEKO_SESSION_IMPLICIT_HOSTING=true")
|
||||||
}
|
}
|
||||||
|
|
||||||
if settings.VideoCodec != "VP8" { // VP8 is default
|
if settings.VideoCodec != "VP8" { // VP8 is default
|
||||||
|
|||||||
Reference in New Issue
Block a user