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

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js

index ccc9342cc668c6b440624b609f9561e8cafe3810..8ac119b62465d7d58b996128dacfb187adc4e1c1 100644 (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