mirror of
https://github.com/AuxXxilium/docker-ddns-server.git
synced 2024-11-23 14:50:59 +07:00
Update host.go
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
22ef53f247
commit
9a3dae1756
@ -23,7 +23,7 @@ type Host struct {
|
||||
// and sets a new LastUpdate date.
|
||||
func (h *Host) UpdateHost(updateHost *Host) (updateRecord bool) {
|
||||
updateRecord = false
|
||||
if h.Ip != updateHost.Ip || h.Ttl != updateHost.Ttl || h.Ttl != updateHost.Desc {
|
||||
if h.Ip != updateHost.Ip || h.Ttl != updateHost.Ttl || h.Desc != updateHost.Desc {
|
||||
updateRecord = true
|
||||
h.LastUpdate = time.Now()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user