xiaorouji 2023-03-29 11:10:38 +08:00 committed by sbwml
parent 80408356a4
commit 3dd970b324
2 changed files with 1 additions and 4 deletions

View File

@ -1221,6 +1221,7 @@ delete_ip2route() {
}
start_haproxy() {
[ "$(config_t_get global_haproxy balancing_enable 0)" != "1" ] && return
haproxy_path=${TMP_PATH}/haproxy
haproxy_conf="config.cfg"
lua $APP_PATH/haproxy.lua -path ${haproxy_path} -conf ${haproxy_conf}

View File

@ -7,10 +7,6 @@ local jsonc = api.jsonc
local uci = api.uci
local sys = api.sys
if uci:get_first(appname, 'global_haproxy', "balancing_enable", 0) ~= 1 then
return
end
local log = function(...)
local result = os.date("%Y-%m-%d %H:%M:%S: ") .. table.concat({...}, " ")
local f, err = io.open("/tmp/log/passwall.log", "a")