mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 12:10:53 +03:00
auto setup_md5
This commit is contained in:
parent
4dd27c848f
commit
fd4dc89360
@ -48,8 +48,6 @@ PF_RULES_SAVE=/tmp/pf-zapret-save.conf
|
||||
|
||||
unset ALL_PROXY
|
||||
|
||||
setup_md5
|
||||
|
||||
killwait()
|
||||
{
|
||||
# $1 - signal (-9, -2, ...)
|
||||
|
@ -277,6 +277,7 @@ replace_char()
|
||||
|
||||
setup_md5()
|
||||
{
|
||||
[ -n "$MD5" ] && return
|
||||
MD5=md5sum
|
||||
exists $MD5 || MD5=md5
|
||||
}
|
||||
@ -285,6 +286,7 @@ random()
|
||||
{
|
||||
# $1 - min, $2 - max
|
||||
local r rs
|
||||
setup_md5
|
||||
if [ -c /dev/urandom ]; then
|
||||
read rs </dev/urandom
|
||||
else
|
||||
|
@ -24,8 +24,6 @@ GET_LIST="$IPSET_DIR/get_config.sh"
|
||||
|
||||
[ -n "$TPPORT" ] || TPPORT=988
|
||||
|
||||
setup_md5
|
||||
|
||||
check_readonly_system()
|
||||
{
|
||||
local RO
|
||||
|
Loading…
Reference in New Issue
Block a user