mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 11:17:34 +08:00
update 2023-10-24 23:36:46
This commit is contained in:
parent
8c7d777c6c
commit
e9623da444
@ -28,7 +28,11 @@ setup_firewall() {
|
||||
|
||||
local handle_fw
|
||||
config_get_bool handle_fw "firewall" "handle_fw" "0"
|
||||
[ "$handle_fw" -eq "1" ] || return 1
|
||||
|
||||
if [ "$handle_fw" -ne "1" ]; then
|
||||
echo "Auto setup firewall disabled. You should set up it manually."
|
||||
return 1
|
||||
fi
|
||||
|
||||
local handle_tls handle_intranet handle_mmtls
|
||||
config_get_bool handle_tls "firewall" "handle_tls" "0"
|
||||
@ -138,7 +142,11 @@ start_service() {
|
||||
|
||||
local enabled
|
||||
config_get_bool enabled "enabled" "enabled" "0"
|
||||
[ "$enabled" -eq "1" ] || return 1
|
||||
|
||||
if [ "$enabled" -ne "1" ]; then
|
||||
echo "UA2F disabled. You should enable it manually."
|
||||
return 1
|
||||
fi
|
||||
|
||||
procd_open_instance "$NAME"
|
||||
procd_set_param command "$PROG"
|
||||
|
Loading…
Reference in New Issue
Block a user