fix license register error in airgap mode (#4653)

This commit is contained in:
Shireesh Anjal
2023-08-10 10:12:21 -07:00
committed by GitHub
parent 44ca181a93
commit e112429e81
+6 -1
View File
@@ -153,13 +153,18 @@ type SubnetMFAReq struct {
}
func isPlay(endpoint url.URL) (bool, error) {
playEndpoint := "https://play.min.io"
if globalAirgapped {
return endpoint.String() == playEndpoint, nil
}
aliasIPs, e := net.LookupHost(endpoint.Hostname())
if e != nil {
return false, e
}
aliasIPSet := set.CreateStringSet(aliasIPs...)
playURL, e := url.Parse("https://play.min.io")
playURL, e := url.Parse(playEndpoint)
if e != nil {
return false, e
}