🚀 Sync 2026-05-14 20:40:35

This commit is contained in:
github-actions[bot]
2026-05-14 20:40:35 +08:00
parent 4a400776b3
commit 903d80abd4
35 changed files with 710 additions and 611 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=3proxy
PKG_VERSION:=0.9.5
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/3proxy/3proxy/tar.gz/$(PKG_VERSION)?
+1 -1
View File
@@ -1,5 +1,5 @@
config 3proxy 'config'
config 3proxy
option enabled '0'
option conffile '/etc/3proxy/3proxy.cfg'
+15 -5
View File
@@ -6,17 +6,21 @@ USE_PROCD=1
CONF="3proxy"
PROG="/usr/bin/3proxy"
start_service() {
config_load "$CONF"
start_instance() {
local cfg="$1"
local enabled conffile
config_get_bool enabled "config" "enabled" "0"
config_get_bool enabled "$cfg" "enabled" "0"
[ "$enabled" -eq "1" ] || return 0
config_get conffile "config" "conffile" "/etc/3proxy/3proxy.cfg"
config_get conffile "$cfg" "conffile"
if [ -z "$conffile" ] || [ ! -e "$conffile" ]; then
logger -p daemon.err -t "$NAME" "config for $cfg does not exists."
return 1
fi
procd_open_instance
procd_open_instance "$cfg"
procd_set_param command "$PROG" "$conffile"
procd_set_param stdout "1"
@@ -28,6 +32,12 @@ start_service() {
procd_close_instance
}
start_service() {
config_load "$CONF"
config_foreach start_instance 3proxy
}
service_triggers() {
procd_add_reload_trigger "$CONF"
}