1
0
mirror of https://github.com/rancher/types.git synced 2025-07-19 15:56:26 +00:00

Change from dnsLabel to hostname for smtp host

This commit is contained in:
zionwu 2018-05-18 14:45:44 +08:00
parent 099a69bb5a
commit 5062d58753

View File

@ -133,7 +133,7 @@ type Notification struct {
}
type SMTPConfig struct {
Host string `json:"host,omitempty" norman:"required,type=dnsLabel"`
Host string `json:"host,omitempty" norman:"required,type=hostname"`
Port int `json:"port,omitempty" norman:"required,min=1,max=65535,default=587"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`