luci-mod-system: validate log_ip as "host" instead of just ipaddr

Fixes FS#2444

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 90051b6858)
This commit is contained in:
Yousong Zhou 2019-11-03 02:12:07 +00:00
parent fafda7c34f
commit a1e70b9534

View file

@ -142,7 +142,7 @@ return L.view.extend({
o = s.taboption('logging', form.Value, 'log_ip', _('External system log server'))
o.optional = true
o.placeholder = '0.0.0.0'
o.datatype = 'ipaddr'
o.datatype = 'host'
o = s.taboption('logging', form.Value, 'log_port', _('External system log server port'))
o.optional = true