We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f650124 + 813491f commit 523a82cCopy full SHA for 523a82c
dyndns/model/host.go
@@ -11,7 +11,7 @@ type Host struct {
11
gorm.Model
12
Hostname string `gorm:"unique_index:idx_host_domain;not null" form:"hostname" validate:"required,hostname"`
13
Domain string `gorm:"unique_index:idx_host_domain;not null" form:"domain" validate:"required,hostname"`
14
- Ip string `form:"ip" validate:"omitempty,ipv4"`
+ Ip string `form:"ip" validate:"omitempty,ipv4|ipv6"`
15
Ttl int `form:"ttl" validate:"required,min=20,max=86400"`
16
LastUpdate time.Time `form:"lastupdate"`
17
UserName string `gorm:"unique" form:"username" validate:"min=3"`
0 commit comments