diff --git a/linux/src/cf.sh b/linux/src/cf.sh index 27bf66d..5cf5b74 100644 --- a/linux/src/cf.sh +++ b/linux/src/cf.sh @@ -16,7 +16,7 @@ do if [[ ! -f "$datafile" ]] then echo 获取CF节点IP - curl --retry 3 https://update.freecdn.workers.dev -o data.txt -# + curl --retry 3 https://update.udpfile.com -o data.txt -# fi domain=$(cat data.txt | grep domain= | cut -f 2- -d'=') file=$(cat data.txt | grep file= | cut -f 2- -d'=') @@ -273,14 +273,14 @@ done start_seconds=$(date --date="$starttime" +%s) end_seconds=$(date --date="$endtime" +%s) clear - curl --ipv4 --resolve update.freecdn.workers.dev:443:$anycast --retry 3 -s -X POST -d '"CF-IP":"'$anycast'","Speed":"'$max'"' 'https://update.freecdn.workers.dev' -o temp.txt + curl --ipv4 --resolve update.udpfile.com:443:$anycast --retry 3 -s -X POST -d ''$anycast-$max'' 'https://update.udpfile.com' -o temp.txt publicip=$(cat temp.txt | grep publicip= | cut -f 2- -d'=') colo=$(cat temp.txt | grep colo= | cut -f 2- -d'=') url=$(cat temp.txt | grep url= | cut -f 2- -d'=') url=$(cat temp.txt | grep url= | cut -f 2- -d'=') app=$(cat temp.txt | grep app= | cut -f 2- -d'=') databasenew=$(cat temp.txt | grep database= | cut -f 2- -d'=') - if [ "$app" != "20201208" ] + if [ "$app" != "20210226" ] then echo 发现新版本程序: $app echo 更新地址: $url diff --git a/shell/cf.sh b/shell/cf.sh index 0ae95d6..59edd5f 100644 --- a/shell/cf.sh +++ b/shell/cf.sh @@ -18,7 +18,7 @@ do if [[ ! -f "$datafile" ]] then echo 获取CF节点IP - curl --retry 3 https://update.freecdn.workers.dev -o data.txt -# + curl --retry 3 https://update.udpfile.com -o data.txt -# fi domain=$(cat data.txt | grep domain= | cut -f 2- -d'=') file=$(cat data.txt | grep file= | cut -f 2- -d'=') @@ -305,14 +305,14 @@ done start_seconds=$(date --date="$starttime" +%s) end_seconds=$(date --date="$endtime" +%s) clear - curl --ipv4 --resolve update.freecdn.workers.dev:443:$anycast --retry 3 -s -X POST -d '"CF-IP":"'$anycast'","Speed":"'$max'"' 'https://update.freecdn.workers.dev' -o temp.txt + curl --ipv4 --resolve update.udpfile.com:443:$anycast --retry 3 -s -X POST -d ''$anycast-$max'' 'https://update.udpfile.com' -o temp.txt publicip=$(cat temp.txt | grep publicip= | cut -f 2- -d'=') colo=$(cat temp.txt | grep colo= | cut -f 2- -d'=') url=$(cat temp.txt | grep url= | cut -f 2- -d'=') url=$(cat temp.txt | grep url= | cut -f 2- -d'=') app=$(cat temp.txt | grep app= | cut -f 2- -d'=') databasenew=$(cat temp.txt | grep database= | cut -f 2- -d'=') - if [ "$app" != "20201208" ] + if [ "$app" != "20210226" ] then echo 发现新版本程序: $app echo 更新地址: $url diff --git "a/windows/CF\344\274\230\351\200\211IP.bat" "b/windows/CF\344\274\230\351\200\211IP.bat" index 328bee2..744be6d 100644 --- "a/windows/CF\344\274\230\351\200\211IP.bat" +++ "b/windows/CF\344\274\230\351\200\211IP.bat" @@ -14,7 +14,7 @@ goto start del ip.txt CR.txt CRLF.txt cut.txt speed.txt temp.txt RD /S /Q temp cls -if not exist "data.txt" title ȡCFڵIP&curl --retry 3 https://update.freecdn.workers.dev -o data.txt -# +if not exist "data.txt" title ȡCFڵIP&curl --retry 3 https://update.udpfile.com -o data.txt -# for /f "tokens=2 delims==" %%a in ('findstr /C:"domain" data.txt') do ( set domain=%%a ) @@ -346,7 +346,7 @@ if %time:~6,1% EQU 0 (set /a stopS=%time:~7,1%) else (set /a stopS=%time:~6,2%) set /a starttime=%startH%*3600+%startM%*60+%startS% set /a stoptime=%stopH%*3600+%stopM%*60+%stopS% if %starttime% GTR %stoptime% (set /a alltime=86400-%starttime%+%stoptime%) else (set /a alltime=%stoptime%-%starttime%) -curl --ipv4 --resolve update.freecdn.workers.dev:443:!anycast! --retry 3 -s -X POST -d """CF-IP"":""!anycast!"",""Speed"":""!Max!""" "https://update.freecdn.workers.dev" -o temp.txt +curl --ipv4 --resolve update.udpfile.com:443:!anycast! --retry 3 -s -X POST -d "!anycast!-!Max!" "https://update.udpfile.com" -o temp.txt for /f "tokens=2 delims==" %%a in ('findstr /C:"publicip" temp.txt') do ( set publicip=%%a ) @@ -358,7 +358,7 @@ set url=%%a ) for /f "tokens=2 delims==" %%a in ('findstr /C:"app" temp.txt') do ( set app=%%a -if !app! NEQ 20201208 (echo °汾: !app!&echo µַ: !url!&title ºſʹ&echo ˳&pause>nul&exit) +if !app! NEQ 20210226 (echo °汾: !app!&echo µַ: !url!&title ºſʹ&echo ˳&pause>nul&exit) ) for /f "tokens=2 delims==" %%a in ('findstr /C:"database" temp.txt') do ( set databasenew=%%a diff --git "a/windows/Colo\346\217\220\345\217\226.bat" "b/windows/Colo\346\217\220\345\217\226.bat" index 0e3e8b0..717ef32 100644 --- "a/windows/Colo\346\217\220\345\217\226.bat" +++ "b/windows/Colo\346\217\220\345\217\226.bat" @@ -14,7 +14,7 @@ if %time:~3,1% EQU 0 (set /a startM=%time:~4,1%) else (set /a startM=%time:~3,2% if %time:~6,1% EQU 0 (set /a startS=%time:~7,1%) else (set /a startS=%time:~6,2%) set /a n=1 set /a m=1 -for /f "skip=7" %%i in ('curl https://update.freecdn.workers.dev -#') do ( +for /f "skip=7" %%i in ('curl https://update.udpfile.com -#') do ( set /a randomip=!random!%%256 echo url = "http://%%i!randomip!/cdn-cgi/trace">>temp/!m!.conf set /a n+=1 diff --git "a/windows/\345\215\225IP\346\265\213\351\200\237.bat" "b/windows/\345\215\225IP\346\265\213\351\200\237.bat" index 611bdee..047c9c5 100644 --- "a/windows/\345\215\225IP\346\265\213\351\200\237.bat" +++ "b/windows/\345\215\225IP\346\265\213\351\200\237.bat" @@ -5,7 +5,7 @@ color A setlocal enabledelayedexpansion cls set /p a=ѡ IP : -curl --ipv4 --resolve update.freecdn.workers.dev:443:%a% https://update.freecdn.workers.dev -o temp.txt -# +curl --ipv4 --resolve update.udpfile.com:443:%a% https://update.udpfile.com -o temp.txt -# for /f "tokens=2 delims==" %%a in ('findstr /C:"domain" temp.txt') do ( set domain=%%a )