luci-mod-system: validate log_ip as "host" instead of just ipaddr
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 4 Nov 2019 03:03:13 +0000 (03:03 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 4 Nov 2019 03:03:13 +0000 (03:03 +0000)
Fixes FS#2444

A replicate of commit 90051b685 on master branch

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua

index c7fdfcddba39ddf2523294291aa58e6957d9053f..516b93a36c8a05e7a109b5fca20720c305b051ee 100644 (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