From 5a67b0aba665913ea468be1e055d96a702aebade Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Wed, 25 Jan 2017 19:23:10 -0800 Subject: [PATCH] embed: reject binding listeners to domain names Fixes #6336 --- embed/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/embed/config.go b/embed/config.go index ed647a0637b..2772f518ee7 100644 --- a/embed/config.go +++ b/embed/config.go @@ -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