Fix cluster registration failing when proxy not set (#3983)

This commit is contained in:
Shireesh Anjal
2022-02-15 04:03:39 -08:00
committed by GitHub
parent 2f42260f98
commit efdc40d7e3
+1 -1
View File
@@ -249,7 +249,7 @@ func setSubnetProxyFromConfig(alias string) error {
// get the subnet proxy config from MinIO if available
supported, proxy := getSubnetKeyFromMinIOConfig(alias, "proxy")
if supported {
if supported && len(proxy) > 0 {
proxyURL, e := url.Parse(proxy)
if e != nil {
return e