From b180bb46e3034d0ce75c9961a8ccea3eefbc855c Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 15 Sep 2016 09:35:44 -0300 Subject: PLT-3412 WebRTC Server side & System Console (#3706) * WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation --- model/license.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'model/license.go') diff --git a/model/license.go b/model/license.go index 1fce1eeb1..465cca128 100644 --- a/model/license.go +++ b/model/license.go @@ -43,7 +43,9 @@ type Features struct { MHPNS *bool `json:"mhpns"` SAML *bool `json:"saml"` PasswordRequirements *bool `json:"password_requirements"` - FutureFeatures *bool `json:"future_features"` + // after we enabled more features for web rtc we'll need to control them with this + Webrtc *bool `json:"webrtc"` + FutureFeatures *bool `json:"future_features"` } func (f *Features) ToMap() map[string]interface{} { @@ -122,6 +124,11 @@ func (f *Features) SetDefaults() { f.PasswordRequirements = new(bool) *f.PasswordRequirements = *f.FutureFeatures } + + if f.Webrtc == nil { + f.Webrtc = new(bool) + *f.Webrtc = *f.FutureFeatures + } } func (l *License) IsExpired() bool { -- cgit v1.2.3-1-g7c22