Browse Source

embed: reject binding listeners to domain names

Fixes #6336
Anthony Romano 9 years ago
parent
commit
5a67b0aba6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      embed/config.go

+ 1 - 2
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