Skip to content

Commit

Permalink
embed: reject binding listeners to domain names
Browse files Browse the repository at this point in the history
  • Loading branch information
heyitsanthony committed Jan 26, 2017
1 parent c4711b0 commit 2c7242f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions embed/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ func checkBindURLs(urls []url.URL) error {
continue
}
if net.ParseIP(host) == nil {
err := fmt.Errorf("expected IP in URL for binding (%s)", url.String())
plog.Warning(err)
return fmt.Errorf("expected IP in URL for binding (%s)", url.String())
}
}
return nil
Expand Down

0 comments on commit 2c7242f

Please sign in to comment.