Update readme

This commit is contained in:
tsosunchia
2023-08-30 21:16:43 +08:00
parent ce46abd232
commit 5d766de52f
4 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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))