Removing offical build check
Этот коммит содержится в:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user