openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
160 stars 96 forks source link

router: skip warning when configured lifetime is 0 #210

Open rpigott opened 7 months ago

rpigott commented 7 months ago

The configured lifetime is overridden to be 0 in certain cases where advertising a positive lifetime is not sensible. A log warning is only warranted if the user was not already aware of this condition and erroneously set the lifetime to a positive value.

If the user acknowledges these conditions by manually configuring a 0 lifetime, we should not warn them of the override.