microsocks: update to 1.0.4
authorOzan Göktan <ozan@goktan.site>
Sun, 10 Mar 2024 13:39:46 +0000 (14:39 +0100)
committerTianling Shen <cnsztl@gmail.com>
Thu, 21 Mar 2024 06:51:58 +0000 (14:51 +0800)
Signed-off-by: Ozan Göktan <ozan@goktan.site>
net/microsocks/Makefile
net/microsocks/files/microsocks.config
net/microsocks/files/microsocks.init

index 82abec56acf95bff3fdf474d5ea7b642914712be..79eea2e6af6eabc5977c92e41fd52e34f50bb89b 100644 (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
index b85d740844255ff91c675f09324836d95b7a163e..d834a7aacb52066c6a1542f1d667f3dbd1aa286f 100644 (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'
index e775d89d7ec2c6ff36da741f2f76aad713221616..74dc03ff5f7eb7e41d2000e884fb30a4c47b2413 100755 (executable)
@@ -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