diff options
author | enahum <nahumhbl@gmail.com> | 2016-09-15 09:35:44 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-09-15 08:35:44 -0400 |
commit | b180bb46e3034d0ce75c9961a8ccea3eefbc855c (patch) | |
tree | 10cfc7affeca5b7c7634b73daf7817cc0c71cfd0 /model/license.go | |
parent | 3b4c9d7588e061b865dd5e35e785919962875fb9 (diff) | |
download | chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.tar.gz chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.tar.bz2 chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.zip |
PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side
* WebRTC System Console
* Consistency on variable names
* Add turn and stun uri validation
Diffstat (limited to 'model/license.go')
-rw-r--r-- | model/license.go | 9 |
1 files changed, 8 insertions, 1 deletions
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 { |