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
Anthony Romano committed Jan 26, 2017
1 parent 6357256 commit 5a67b0a
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 5a67b0a

Please sign in to comment.