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

Fixes FS#2444

A replicate of commit 90051b685 on master branch

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou 2019-11-04 03:03:13 +00:00
parent 50788da24e
commit a32190c0b2

View file

@ -73,7 +73,7 @@ o.datatype = "uinteger"
o = s:taboption("logging", Value, "log_ip", translate("External system log server"))
o.optional = true
o.placeholder = "0.0.0.0"
o.datatype = "ip4addr"
o.datatype = "host"
o = s:taboption("logging", Value, "log_port", translate("External system log server port"))
o.optional = true