From a32190c0b2ae0587647618cbef69e287b1569c09 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 4 Nov 2019 03:03:13 +0000 Subject: [PATCH] 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 --- .../luasrc/model/cbi/admin_system/system.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua index c7fdfcddb..516b93a36 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua @@ -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 -- 2.25.1