diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-12 10:57:39 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-12 10:57:39 -0700 |
commit | ac1367a28607f2f10a1f665838f2e60845062dbf (patch) | |
tree | 22e9c2d96f5997854c42da2849b3ad6166539f1b | |
parent | 3c42ae312d037ce7e26a8df86355fcba12210a86 (diff) | |
download | chat-ac1367a28607f2f10a1f665838f2e60845062dbf.tar.gz chat-ac1367a28607f2f10a1f665838f2e60845062dbf.tar.bz2 chat-ac1367a28607f2f10a1f665838f2e60845062dbf.zip |
Removing offical build check
-rw-r--r-- | mattermost.go | 2 | ||||
-rw-r--r-- | utils/diagnostic.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mattermost.go b/mattermost.go index b8a44d26e..d2a0567f4 100644 --- a/mattermost.go +++ b/mattermost.go @@ -81,7 +81,7 @@ func main() { func securityAndDiagnosticsJob() { go func() { for { - if *utils.Cfg.ServiceSettings.EnableSecurityFixAlert { // && model.IsOfficalBuild() { + if *utils.Cfg.ServiceSettings.EnableSecurityFixAlert { if result := <-api.Srv.Store.System().Get(); result.Err == nil { props := result.Data.(model.StringMap) lastSecurityTime, _ := strconv.ParseInt(props["LastSecurityTime"], 10, 0) diff --git a/utils/diagnostic.go b/utils/diagnostic.go index 7d13e0e52..fd0c12793 100644 --- a/utils/diagnostic.go +++ b/utils/diagnostic.go @@ -24,7 +24,7 @@ const ( ) func SendDiagnostic(values url.Values) { - if *Cfg.ServiceSettings.EnableSecurityFixAlert && model.IsOfficalBuild() { + if *Cfg.ServiceSettings.EnableSecurityFixAlert { res, err := http.Get(DIAGNOSTIC_URL + "/i?" + values.Encode()) if err != nil { |