Explorar el Código

fix config value check for endpoint detection

abhishek9686 hace 1 año
padre
commit
9c65ffa130
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      servercfg/serverconf.go

+ 1 - 1
servercfg/serverconf.go

@@ -678,7 +678,7 @@ func DeployedByOperator() bool {
 func IsEndpointDetectionEnabled() bool {
 	var enabled = true //default
 	if os.Getenv("ENDPOINT_DETECTION") != "" {
-		enabled = os.Getenv("ENDPOINT_DETECTION") == "yes"
+		enabled = os.Getenv("ENDPOINT_DETECTION") == "true"
 	} else {
 		enabled = config.Config.Server.EndpointDetection
 	}