mirror of
https://github.com/AuxXxilium/docker-ddns-server.git
synced 2024-11-23 23:00:59 +07:00
Update ip.go
Signed-off-by: AuxXxilium <info@auxxxilium.tech> # Conflicts: # dyndns/nswrapper/ip.go
This commit is contained in:
parent
4556a66f25
commit
c7a13b40b1
@ -16,6 +16,7 @@ type Host struct {
|
||||
LastUpdate time.Time `form:"lastupdate"`
|
||||
UserName string `gorm:"unique" form:"username" validate:"min=3"`
|
||||
Password string `form:"password" validate:"min=8"`
|
||||
Desc string `form:"desc"`
|
||||
}
|
||||
|
||||
// UpdateHost updates all fields of a host entry
|
||||
@ -31,6 +32,7 @@ func (h *Host) UpdateHost(updateHost *Host) (updateRecord bool) {
|
||||
h.Ttl = updateHost.Ttl
|
||||
h.UserName = updateHost.UserName
|
||||
h.Password = updateHost.Password
|
||||
h.Desc = updateHost.Desc
|
||||
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user