Fix mixed DNS and IP SANs in Order
This commit is contained in:
parent
af615db6b5
commit
76dcf542d4
2 changed files with 44 additions and 23 deletions
|
@ -33,7 +33,7 @@ func (n *NewOrderRequest) Validate() error {
|
|||
return acme.NewError(acme.ErrorMalformedType, "identifier type unsupported: %s", id.Type)
|
||||
}
|
||||
if id.Type == "ip" && net.ParseIP(id.Value) == nil {
|
||||
return acme.NewError(acme.ErrorMalformedType, "%s is not a valid IP address", id.Value)
|
||||
return acme.NewError(acme.ErrorMalformedType, "invalid IP address: %s", id.Value)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue