File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,8 @@ function fncCheckIPList {
218
218
fi
219
219
if $timeoutCommand 1 bash -c " </dev/tcp/$ip /443" > /dev/null 2>&1 ;
220
220
then
221
- domainFronting=$( $timeoutCommand 1 curl -k -s -w " %{http_code}\n " -- tlsv1.2 -H " Host: speed.cloudflare.com" --resolve " speed.cloudflare.com:443:$ip " " https://speed.cloudflare.com/__down?bytes=1000 " -o /dev/null )
222
- if [[ " $domainFronting " == " 200 " ]]
221
+ domainFronting=$( $timeoutCommand 1 curl -k -s -- tlsv1.2 -H " Host: speed.cloudflare.com" --resolve " speed.cloudflare.com:443:$ip " " https://speed.cloudflare.com/__down?bytes=10 " )
222
+ if [[ " $domainFronting " == " 0000000000 " ]]
223
223
then
224
224
mainDomain=$( echo " $configHost " | awk -F ' .' ' { print $2"."$3}' )
225
225
if [[ " $osVersion " == " Linux" ]]
@@ -373,8 +373,8 @@ function fncCheckIPList {
373
373
fi
374
374
if $timeoutCommand 1 bash -c " </dev/tcp/$ip /443" > /dev/null 2>&1 ;
375
375
then
376
- domainFronting=$( $timeoutCommand 1 curl -k -s -w " %{http_code}\n " -- tlsv1.2 -H " Host: speed.cloudflare.com" --resolve " speed.cloudflare.com:443:$ip " " https://speed.cloudflare.com/__down?bytes=1000 " -o /dev/null )
377
- if [[ " $domainFronting " == " 200 " ]]
376
+ domainFronting=$( $timeoutCommand 1 curl -k -s -- tlsv1.2 -H " Host: speed.cloudflare.com" --resolve " speed.cloudflare.com:443:$ip " " https://speed.cloudflare.com/__down?bytes=10 " )
377
+ if [[ " $domainFronting " == " 0000000000 " ]]
378
378
then
379
379
downTotalTime=0
380
380
upTotalTime=0
You can’t perform that action at this time.
0 commit comments