From: Florian Eckert Date: Wed, 16 Dec 2020 14:53:08 +0000 (+0100) Subject: luci-app-statistics: allow host name for data push X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=833e25d24a8cbf8dd587ee4424ef49b3e4e5f210;p=openwrt-luci.git luci-app-statistics: allow host name for data push Up do now only an ip address was a allowd. Fixes: #4288 Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/network.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/network.js index 2429b8ac77..b184335f18 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/network.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/network.js @@ -57,7 +57,7 @@ return baseclass.extend({ o = ss.option(form.Value, 'host', _('Server host')); o.default = '0.0.0.0'; - o.datatype = 'ipaddr("nomask")'; + o.datatype = 'or(hostname,ipaddr("nomask"))'; o = ss.option(form.Value, 'port', _('Server port')); o.default = '25826';