microsocks: update to 1.0.4

Signed-off-by: Ozan Göktan <ozan@goktan.site>
This commit is contained in:
Ozan Göktan 2024-03-10 14:39:46 +01:00 committed by Tianling Shen
parent 8742b6c340
commit 544e4a9061
3 changed files with 6 additions and 2 deletions

View File

@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=microsocks
PKG_VERSION:=1.0.3
PKG_VERSION:=1.0.4
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/microsocks/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=6801559b6f8e17240ed8eef17a36eea8643412b5a7476980fd4e24b02a021b82
PKG_HASH:=130127a87f55870f18fbe47a64d9b9533020e2900802d36a0f6fd2b074313deb
PKG_MAINTAINER:=Mateusz Korniak <matkorgithubcom@ant.gliwice.pl>
PKG_LICENSE:=MIT

View File

@ -7,3 +7,4 @@ config microsocks 'config'
option user ''
option password ''
option auth_once '0' # Boolean, must be used together with user/pass
option quiet '1'

View File

@ -18,6 +18,7 @@ start_service() {
local _user
local _format
local _auth_once
local _quiet
config_get _port "config" "port"
config_get _listenip "config" "listenip"
@ -25,6 +26,7 @@ start_service() {
config_get _user "config" "user"
config_get _password "config" "password"
config_get_bool _auth_once "config" "auth_once" 0
config_get_bool _quiet "config" "quiet" 0
procd_open_instance "$CONF"
procd_set_param command /usr/bin/microsocks
@ -34,6 +36,7 @@ start_service() {
[ -z "$_user" ] || procd_append_param command -u "${_user}"
[ -z "$_password" ] || procd_append_param command -P "${_password}"
[ "$_auth_once" -eq "0" ] || procd_append_param command -1
[ "$_quiet" -eq "0" ] || procd_append_param command -q
procd_set_param respawn
procd_set_param stderr 1