From 9a3dae1756145aa5a91628dce4c2a0d5db9881e7 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Mon, 5 Aug 2024 19:25:05 +0200 Subject: [PATCH] Update host.go Signed-off-by: AuxXxilium --- dyndns/model/host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyndns/model/host.go b/dyndns/model/host.go index c035352..6e97915 100644 --- a/dyndns/model/host.go +++ b/dyndns/model/host.go @@ -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() }