mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-17 04:44:10 +02:00
microsocks: update to 1.0.4
Signed-off-by: Ozan Göktan <ozan@goktan.site>
This commit is contained in:
parent
8742b6c340
commit
544e4a9061
|
@ -1,12 +1,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=microsocks
|
PKG_NAME:=microsocks
|
||||||
PKG_VERSION:=1.0.3
|
PKG_VERSION:=1.0.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/microsocks/tar.gz/v$(PKG_VERSION)?
|
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_MAINTAINER:=Mateusz Korniak <matkorgithubcom@ant.gliwice.pl>
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
|
|
@ -7,3 +7,4 @@ config microsocks 'config'
|
||||||
option user ''
|
option user ''
|
||||||
option password ''
|
option password ''
|
||||||
option auth_once '0' # Boolean, must be used together with user/pass
|
option auth_once '0' # Boolean, must be used together with user/pass
|
||||||
|
option quiet '1'
|
||||||
|
|
|
@ -18,6 +18,7 @@ start_service() {
|
||||||
local _user
|
local _user
|
||||||
local _format
|
local _format
|
||||||
local _auth_once
|
local _auth_once
|
||||||
|
local _quiet
|
||||||
|
|
||||||
config_get _port "config" "port"
|
config_get _port "config" "port"
|
||||||
config_get _listenip "config" "listenip"
|
config_get _listenip "config" "listenip"
|
||||||
|
@ -25,6 +26,7 @@ start_service() {
|
||||||
config_get _user "config" "user"
|
config_get _user "config" "user"
|
||||||
config_get _password "config" "password"
|
config_get _password "config" "password"
|
||||||
config_get_bool _auth_once "config" "auth_once" 0
|
config_get_bool _auth_once "config" "auth_once" 0
|
||||||
|
config_get_bool _quiet "config" "quiet" 0
|
||||||
|
|
||||||
procd_open_instance "$CONF"
|
procd_open_instance "$CONF"
|
||||||
procd_set_param command /usr/bin/microsocks
|
procd_set_param command /usr/bin/microsocks
|
||||||
|
@ -34,6 +36,7 @@ start_service() {
|
||||||
[ -z "$_user" ] || procd_append_param command -u "${_user}"
|
[ -z "$_user" ] || procd_append_param command -u "${_user}"
|
||||||
[ -z "$_password" ] || procd_append_param command -P "${_password}"
|
[ -z "$_password" ] || procd_append_param command -P "${_password}"
|
||||||
[ "$_auth_once" -eq "0" ] || procd_append_param command -1
|
[ "$_auth_once" -eq "0" ] || procd_append_param command -1
|
||||||
|
[ "$_quiet" -eq "0" ] || procd_append_param command -q
|
||||||
|
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
procd_set_param stderr 1
|
procd_set_param stderr 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user