Removing offical build check
Этот коммит содержится в:
@@ -81,7 +81,7 @@ func main() {
|
|||||||
func securityAndDiagnosticsJob() {
|
func securityAndDiagnosticsJob() {
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
if *utils.Cfg.ServiceSettings.EnableSecurityFixAlert { // && model.IsOfficalBuild() {
|
if *utils.Cfg.ServiceSettings.EnableSecurityFixAlert {
|
||||||
if result := <-api.Srv.Store.System().Get(); result.Err == nil {
|
if result := <-api.Srv.Store.System().Get(); result.Err == nil {
|
||||||
props := result.Data.(model.StringMap)
|
props := result.Data.(model.StringMap)
|
||||||
lastSecurityTime, _ := strconv.ParseInt(props["LastSecurityTime"], 10, 0)
|
lastSecurityTime, _ := strconv.ParseInt(props["LastSecurityTime"], 10, 0)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func SendDiagnostic(values url.Values) {
|
func SendDiagnostic(values url.Values) {
|
||||||
if *Cfg.ServiceSettings.EnableSecurityFixAlert && model.IsOfficalBuild() {
|
if *Cfg.ServiceSettings.EnableSecurityFixAlert {
|
||||||
|
|
||||||
res, err := http.Get(DIAGNOSTIC_URL + "/i?" + values.Encode())
|
res, err := http.Get(DIAGNOSTIC_URL + "/i?" + values.Encode())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user