Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
dnsmasq: Re-apply Asus's dynamicly calculated max-lease setting code
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed Nov 27, 2014
1 parent 35bde4d commit 1c1eaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/src/router/rc/services.c
Expand Up @@ -873,7 +873,7 @@ void start_dnsmasq(int force)
if (have_dhcp) {
/* Maximum leases */
if ((i = get_dhcpd_lmax()) > 0)
fprintf(fp, "dhcp-lease-max=%d\n", 253);
fprintf(fp, "dhcp-lease-max=%d\n", i);

/* Faster for moving clients, if authoritative */
if (nvram_get_int("dhcpd_auth") >= 0)
Expand Down

0 comments on commit 1c1eaaa

Please sign in to comment.