From 5d766de52fe21c09990bc249abec61e90eb6d587 Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Wed, 30 Aug 2023 21:16:43 +0800 Subject: [PATCH] Update readme --- README.md | 3 ++- README_zh_CN.md | 3 ++- nt_install_v1.sh | 2 +- pow/pow_test.go | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cdb2c4c..034c8d9 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Document Language: English | [简体中文](README_zh_CN.md) ⚠️ This is the README for the V1 version of NextTrace. -Differences between version v1.1.2 and v1.1.9: +Differences between version v1.1.2 and v1.2.0: * Added and fixed support for some third-party GEOIP APIs * ipinfo * ipinfoLocal, which is the offline version of the ipinfo database @@ -64,6 +64,7 @@ Differences between version v1.1.2 and v1.1.9: * Supports more parameters in fasttrace mode * Added cache handling to speed up resolution * Fixed some bugs +* Golang v1.21.0 ### Automated Install diff --git a/README_zh_CN.md b/README_zh_CN.md index c8f85c0..8a422d8 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -49,7 +49,7 @@ Document Language: [English](README.md) | 简体中文 ⚠️ 这是NextTrace V1 版本的README文件。 -关于 v1.1.2 与 v1.1.9 版本的区别: +关于 v1.1.2 与 v1.2.0 版本的区别: * 增加和修复了部分第三方GEOIP API的支持 * ipinfo * ipinfoLocal 即ipinfo数据库离线版 @@ -67,6 +67,7 @@ Document Language: [English](README.md) | 简体中文 * fasttrace模式下支持更多的参数 * 增加缓存处理以加速解析 * 修复了部分BUG +* Golang v1.21.0 ### Before Using diff --git a/nt_install_v1.sh b/nt_install_v1.sh index e783977..f24e166 100644 --- a/nt_install_v1.sh +++ b/nt_install_v1.sh @@ -93,7 +93,7 @@ checkWgetPackage() { downloadBinrayFile() { echo -e "${Info} 获取最新版的 NextTrace 发行版文件信息" # 简单说明一下,Github提供了一个API,可以获取最新发行版本的二进制文件下载地址(对应的是browser_download_url),根据刚刚测得的osDistribution、archParam,获取对应的下载地址 - latestURL=$(curl -sL http://nexttrace-io-leomoe-api-a0.shop/v119.json | grep -i "browser_download_url.*${osDistribution}.*${archParam}" | awk -F '"' '{print $4}') + latestURL=$(curl -sL http://nexttrace-io-leomoe-api-a0.shop/latest_v1.json | grep -i "browser_download_url.*${osDistribution}.*${archParam}" | awk -F '"' '{print $4}') echo -e "${Info} 正在下载 NextTrace 二进制文件..." wget -O ${Temp_path} ${latestURL} &> /dev/null diff --git a/pow/pow_test.go b/pow/pow_test.go index 72b63c9..26c5370 100644 --- a/pow/pow_test.go +++ b/pow/pow_test.go @@ -10,7 +10,7 @@ import ( func TestGetToken(t *testing.T) { // 计时开始 start := time.Now() - token, err := GetToken("103.120.18.35", "api.leo.moe", "443") + token, err := GetToken("api.leo.moe", "api.leo.moe", "443") // 计时结束 end := time.Now() fmt.Println("耗时:", end.Sub(start))