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 --- utils/config.go | 4 ++++ utils/license.go | 1 + 2 files changed, 5 insertions(+) (limited to 'utils') diff --git a/utils/config.go b/utils/config.go index 25dec7ace..2c4113009 100644 --- a/utils/config.go +++ b/utils/config.go @@ -337,6 +337,10 @@ func getClientConfig(c *model.Config) map[string]string { props["PasswordRequireNumber"] = strconv.FormatBool(*c.PasswordSettings.Number) props["PasswordRequireSymbol"] = strconv.FormatBool(*c.PasswordSettings.Symbol) } + + if *License.Features.Webrtc { + props["EnableWebrtc"] = strconv.FormatBool(*c.WebrtcSettings.Enable) + } } return props diff --git a/utils/license.go b/utils/license.go index 4d6387788..ae27dbc88 100644 --- a/utils/license.go +++ b/utils/license.go @@ -125,6 +125,7 @@ func getClientLicense(l *model.License) map[string]string { props["Cluster"] = strconv.FormatBool(*l.Features.Cluster) props["GoogleOAuth"] = strconv.FormatBool(*l.Features.GoogleOAuth) props["Office365OAuth"] = strconv.FormatBool(*l.Features.Office365OAuth) + props["Webrtc"] = strconv.FormatBool(*l.Features.Webrtc) props["Compliance"] = strconv.FormatBool(*l.Features.Compliance) props["CustomBrand"] = strconv.FormatBool(*l.Features.CustomBrand) props["MHPNS"] = strconv.FormatBool(*l.Features.MHPNS) -- cgit v1.2.3-1-g7c22