Skip to content

Commit

Permalink
Read TOXIPROXY_URL environment variables if set as default values f…
Browse files Browse the repository at this point in the history
…or the host flag (#319)

* Read TOXIPROXY_URL as EnvVars

* Update CHANGELOG.md on `TOXIPROXY_URL`
  • Loading branch information
maaslalani committed Sep 17, 2021
1 parent 3862285 commit 3d6882e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Setup code linter (#314, @miry)
* Max line length is 100 characters (#316, @miry)
* Linter to check whether HTTP response body is closed successfully (#317, @miry)
* `--host` flag uses `TOXIPROXY_URL` if it is set (#319, @maaslalani)

# [2.1.5]

Expand Down
1 change: 1 addition & 0 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ func main() {
Value: "http://localhost:8474",
Usage: "toxiproxy host to connect to",
Destination: &hostname,
EnvVars: []string{"TOXIPROXY_URL"},
},
}

Expand Down

0 comments on commit 3d6882e

Please sign in to comment.