Skip to content

Commit

Permalink
feat(luci): add support for disable_log_color
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Sep 7, 2019
1 parent 6991981 commit 7f08160
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions luasrc/model/cbi/frpc/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ o:depends("enable_logging", "1")
o.datatype = "uinteger"
o.placeholder = '3'

o = s:taboption("general", Value, "disable_log_color", translate("Disable log color"))
o:depends("enable_logging", "1")
o.enabled = "true"
o.disabled = "false"

o = s:taboption("advanced", Value, "pool_count", translate("Pool count"),
translate("Connections will be established in advance, default value is zero"))
o.datatype = "uinteger"
Expand Down
2 changes: 1 addition & 1 deletion root/etc/init.d/frpc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ create_config_file() {
fi

append_options "$tmp_file" \
"log_file" "log_level" "log_max_days"
"log_file" "log_level" "log_max_days" "disable_log_color"

if [ -f "$log_file" ] ; then
echo > "$log_file"
Expand Down

0 comments on commit 7f08160

Please sign in to comment.