summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-12-16 15:53:08 +0100
committerFlorian Eckert <fe@dev.tdt.de>2020-12-16 15:55:39 +0100
commit833e25d24a8cbf8dd587ee4424ef49b3e4e5f210 (patch)
tree613fc9cc0968ccda70b2b995cf8b928f0e4a721d /applications/luci-app-statistics/htdocs/luci-static/resources
parent538a8a482908d992949401c4988fe2c7ad592b2e (diff)
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 <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/network.js2
1 files changed, 1 insertions, 1 deletions
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';