From 833e25d24a8cbf8dd587ee4424ef49b3e4e5f210 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 16 Dec 2020 15:53:08 +0100 Subject: [PATCH] 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 --- .../luci-static/resources/view/statistics/plugins/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.30.2