mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-20 02:38:32 +00:00
Modify and propagate changed lease.
If hostname is reset on existing lease, propagate such change to leases file and script.
This commit is contained in:
committed by
Simon Kelley
parent
cb6d06bb54
commit
0c95a5ff53
@@ -1021,6 +1021,7 @@ void lease_set_hostname(struct dhcp_lease *lease, const char *name, int auth, ch
|
|||||||
}
|
}
|
||||||
|
|
||||||
kill_name(lease_tmp);
|
kill_name(lease_tmp);
|
||||||
|
lease_tmp->flags |= LEASE_CHANGED; /* run script on change */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user