Skip to content

Commit

Permalink
fix license register error in airgap mode (minio#4653)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjalshireesh authored and harshavardhana committed Aug 10, 2023
1 parent 0d53e3c commit b03e748
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/license-register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b03e748

Please sign in to comment.