diff --git a/net/microsocks/Makefile b/net/microsocks/Makefile index 82abec56ac..79eea2e6af 100644 --- a/net/microsocks/Makefile +++ b/net/microsocks/Makefile @@ -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 PKG_LICENSE:=MIT diff --git a/net/microsocks/files/microsocks.config b/net/microsocks/files/microsocks.config index b85d740844..d834a7aacb 100644 --- a/net/microsocks/files/microsocks.config +++ b/net/microsocks/files/microsocks.config @@ -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' diff --git a/net/microsocks/files/microsocks.init b/net/microsocks/files/microsocks.init index e775d89d7e..74dc03ff5f 100755 --- a/net/microsocks/files/microsocks.init +++ b/net/microsocks/files/microsocks.init @@ -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