Skip to content

Commit

Permalink
rename env to FALCON_ENDPOINT from ENDPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
laiwei authored Aug 15, 2017
1 parent 5b6a8b2 commit d038b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/agent/g/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d038b7d

Please sign in to comment.