luci-app-frpc: Set the disable_log_color option to false by default
authorRen Zongjia <redacted>
Fri, 24 Dec 2021 07:14:14 +0000 (15:14 +0800)
committerRen Zongjia <redacted>
Fri, 24 Dec 2021 07:14:14 +0000 (15:14 +0800)
Signed-off-by: Ren Zongjia <redacted>
applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js

index ec75e0bf9462f745278082bb07c5327c9fb9b6b4..7fe9042d424e6a5b938130332313e07ca5e60344 100644 (file)
@@ -21,7 +21,7 @@ var commonConf = [
        [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']}],
-       [form.Flag, 'disable_log_color', _('Disable log color'), _('DisableLogColor disables log colors when LogWay == "console" when set to true.'), {datatype: 'bool', default: 'true'}],
+       [form.Flag, 'disable_log_color', _('Disable log color'), _('DisableLogColor disables log colors when LogWay == "console" when set to true.'), {datatype: 'bool', default: 'false'}],
        [form.Value, 'token', _('Token'), _('Token specifies the authorization token used to create keys to be sent to the server. The server must have a matching token for authorization to succeed. <br />By default, this value is "".')],
        [form.Value, 'admin_addr', _('Admin address'), _('AdminAddr specifies the address that the admin server binds to.<br />By default, this value is "127.0.0.1".'), {datatype: 'ipaddr'}],
        [form.Value, 'admin_port', _('Admin port'), _('AdminPort specifies the port for the admin server to listen on. If this value is 0, the admin server will not be started.<br />By default, this value is 0.'), {datatype: 'port'}],
git clone https://git.99rst.org/PROJECT