mirror of https://github.com/dapr/cli.git
gofmt utils.go file
This commit is contained in:
parent
5ed20845dd
commit
5334e6655a
|
@ -187,11 +187,11 @@ func PrintDetail(writer io.Writer, outputFormat string, list interface{}) error
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsAddressLegal(address string) bool {
|
func IsAddressLegal(address string) bool {
|
||||||
var isLegal bool
|
var isLegal bool
|
||||||
if address == "localhost" {
|
if address == "localhost" {
|
||||||
isLegal = true
|
isLegal = true
|
||||||
} else if net.ParseIP(address) != nil {
|
} else if net.ParseIP(address) != nil {
|
||||||
isLegal = true
|
isLegal = true
|
||||||
}
|
}
|
||||||
return isLegal
|
return isLegal
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue