Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #818 from SteveAzz/set-default-addr
Browse files Browse the repository at this point in the history
Set a default addr for any environment apart from development
  • Loading branch information
markbates authored Dec 20, 2017
2 parents 8fd163c + ef75e90 commit 081cc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func optionsWithDefaults(opts Options) Options {
opts.Env = defaults.String(opts.Env, envy.Get("GO_ENV", "development"))
opts.LogLevel = defaults.String(opts.LogLevel, "debug")
opts.Name = defaults.String(opts.Name, "/")
addr := ""
addr := "0.0.0.0"
if opts.Env == "development" {
addr = "127.0.0.1"
}
Expand Down

0 comments on commit 081cc68

Please sign in to comment.