Update host.go

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-05 19:25:05 +02:00
parent 22ef53f247
commit 9a3dae1756

View File

@ -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()
}