PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
3b4c9d7588
Коммит
b180bb46e3
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user