diff --git a/modules/agent/g/cfg.go b/modules/agent/g/cfg.go index ec9ddce81..c3e01818b 100644 --- a/modules/agent/g/cfg.go +++ b/modules/agent/g/cfg.go @@ -72,8 +72,8 @@ func Hostname() (string, error) { return hostname, nil } - if os.Getenv("ENDPOINT") != "" { - hostname = os.Getenv("ENDPOINT") + if os.Getenv("FALCON_ENDPOINT") != "" { + hostname = os.Getenv("FALCON_ENDPOINT") return hostname, nil }