mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-10 16:31:00 +00:00
Add --dhcp-ttl option.
This commit is contained in:
1 parent
df3d54f776
commit
832e47beab
4 files changed
+17
-5
No files matched your search
+1
-1
@@ -1170,7 +1170,7 @@ static unsigned long crec_ttl(struct crec *crecp, time_t now)
|
||||
before the lease expires. */
|
||||
|
||||
if (crecp->flags & F_DHCP)
|
||||
return daemon->local_ttl;
|
||||
return daemon->use_dhcp_ttl ? daemon->dhcp_ttl : daemon->local_ttl;
|
||||
|
||||
/* Immortal entries other than DHCP are local, and hold TTL in TTD field. */
|
||||
if (crecp->flags & F_IMMORTAL)
|
||||
|
||||
Reference in new issue
Block a user