mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-04 07:20:35 +05:00
blockcheck: report strategy function
This commit is contained in:
parent
845fdeba63
commit
9f5b44a021
@ -426,6 +426,21 @@ tpws_curl_test_update()
|
|||||||
xxxws_curl_test_update tpws_curl_test "$@"
|
xxxws_curl_test_update tpws_curl_test "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
report_strategy()
|
||||||
|
{
|
||||||
|
# $1 - domain
|
||||||
|
# $2 - daemon
|
||||||
|
echo
|
||||||
|
if [ -n "$strategy" ]; then
|
||||||
|
echo "!!!!! working strategy found for ipv${IPV} $1 : $2 $strategy !!!!!"
|
||||||
|
echo
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
echo "strategy for ipv${IPV} $1 not found"
|
||||||
|
echo
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
pktws_check_domain_bypass()
|
pktws_check_domain_bypass()
|
||||||
{
|
{
|
||||||
# $1 - test function
|
# $1 - test function
|
||||||
@ -477,15 +492,7 @@ pktws_check_domain_bypass()
|
|||||||
# do not do wssize test for http. it's useless
|
# do not do wssize test for http. it's useless
|
||||||
[ "$sec" = 1 ] || break
|
[ "$sec" = 1 ] || break
|
||||||
done
|
done
|
||||||
|
report_strategy $3 $PKTWSD
|
||||||
echo
|
|
||||||
if [ -n "$strategy" ]; then
|
|
||||||
echo "!!!!! working strategy found for ipv${IPV} $3 : $PKTWSD $strategy !!!!!"
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
echo "strategy for ipv${IPV} $3 not found"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
tpws_check_domain_bypass()
|
tpws_check_domain_bypass()
|
||||||
{
|
{
|
||||||
@ -505,14 +512,7 @@ tpws_check_domain_bypass()
|
|||||||
tpws_curl_test_update $1 $3 $s && break
|
tpws_curl_test_update $1 $3 $s && break
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
echo
|
report_strategy $3 tpws
|
||||||
if [ -n "$strategy" ]; then
|
|
||||||
echo "!!!!! working strategy found for ipv${IPV} $3 : tpws $strategy !!!!!"
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
echo "strategy for ipv${IPV} $3 not found"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_domain()
|
check_domain()
|
||||||
|
Loading…
Reference in New Issue
Block a user