Browse Source

fix config value check for endpoint detection

abhishek9686 1 year ago
parent
commit
9c65ffa130
1 changed files with 1 additions and 1 deletions
  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
 	}