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>
This commit is contained in:
Florian Eckert 2020-12-16 15:53:08 +01:00
parent 538a8a4829
commit 833e25d24a

View file

@ -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';