From 665bbb014bbe05a40ca0422d028fe358a1f33694 Mon Sep 17 00:00:00 2001 From: Siyao Mo Date: Wed, 23 Jun 2021 02:31:42 +0800 Subject: [PATCH] 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 --- .../luci-app-frpc/htdocs/luci-static/resources/view/frpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']}], -- 2.30.2