luci-mod-admin-full: automatically set dns=1 for static leases with hostname
authorJo-Philipp Wich <jo@mein.io>
Thu, 1 Jun 2017 23:00:12 +0000 (01:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 1 Jun 2017 23:02:42 +0000 (01:02 +0200)
commita9e8376c20f386c030e8b004e1245fa220173773
tree87f61058eb007842814509037ae333f6513c1150
parent934ee7b66ad9829292019c86c9f58055f05065bf
luci-mod-admin-full: automatically set dns=1 for static leases with hostname

Most users likely want the hostname of a static DHCP lease to be resolveable,
even if the corresponding host is currently offline.

Adjust the form logic to automatically set 'option dns 1' whenever a name is
specified in the static lease entry.

FIxes LEDE FS#815.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua