summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSiyao Mo <msylgj@vip.qq.com>2021-06-23 02:31:42 +0800
committerSiYao Mo <msylgj@vip.qq.com>2021-06-23 16:03:22 +0800
commit665bbb014bbe05a40ca0422d028fe358a1f33694 (patch)
tree10f443306b37863403df32373d3e0d9df97a043c
parentd1c4adff93aa5ec0892d0ff7b98d56f21c6e531d (diff)
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 <msylgj@vip.qq.com>
-rw-r--r--applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js2
1 files changed, 1 insertions, 1 deletions
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.<br>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.<br>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.<br>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.<br>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".<br>By default, this value is "info".'), {values: ['trace', 'debug', 'info', 'warn', 'error']}],