From: Siyao Mo Date: Tue, 22 Jun 2021 18:31:42 +0000 (+0800) Subject: luci-app-frpc: allow hostname in server address X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=665bbb014bbe05a40ca0422d028fe358a1f33694;p=project%2Fluci.git luci-app-frpc: allow hostname in server address Sometimes, our frp server cannot use a static ip address. So perhaps we should allow people to use hostname in server address. Signed-off-by: SiYao Mo --- diff --git a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js index 11385b469d..6c16ab800f 100644 --- a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js +++ b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js @@ -16,7 +16,7 @@ var startupConf = [ ]; var commonConf = [ - [form.Value, 'server_addr', _('Server address'), _('ServerAddr specifies the address of the server to connect to.
By default, this value is "0.0.0.0".'), {datatype: 'ipaddr'}], + [form.Value, 'server_addr', _('Server address'), _('ServerAddr specifies the address of the server to connect to.
By default, this value is "0.0.0.0".'), {datatype: 'host'}], [form.Value, 'server_port', _('Server port'), _('ServerPort specifies the port to connect to the server on.
By default, this value is 7000.'), {datatype: 'port'}], [form.Value, 'http_proxy', _('HTTP proxy'), _('HttpProxy specifies a proxy address to connect to the server through. If this value is "", the server will be connected to directly.
By default, this value is read from the "http_proxy" environment variable.')], [form.ListValue, 'log_level', _('Log level'), _('LogLevel specifies the minimum log level. Valid values are "trace", "debug", "info", "warn", and "error".
By default, this value is "info".'), {values: ['trace', 'debug', 'info', 'warn', 'error']}],