From c6b7db8d5969035fa888993ab7741c642a5547f3 Mon Sep 17 00:00:00 2001
From: tsosunchia <59512455+tsosunchia@users.noreply.github.com>
Date: Wed, 25 Jan 2023 12:33:06 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3brew=E5=8C=85=E6=80=BB?=
=?UTF-8?q?=E8=90=BD=E5=90=8Erelease=E4=B8=80=E4=B8=AA=E7=89=88=E6=9C=AC?=
=?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20=E4=BB=A5=E5=90=8Epublishnewformu?=
=?UTF-8?q?la=E9=9B=86=E6=88=90=E5=88=B0build=E4=B8=AD=EF=BC=8C=20publishn?=
=?UTF-8?q?ewformula=E4=BF=9D=E7=95=99=EF=BC=8C=E4=BD=86=E5=8F=AA=E8=83=BD?=
=?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=90=AF=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/workflows/build.yml | 39 ++++++++++++++++++++++++-
.github/workflows/publishNewFormula.yml | 5 ++--
2 files changed, 40 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e7f56c5..5aa96b6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -48,4 +48,41 @@ jobs:
dist/nexttrace_freebsd_amd64
dist/nexttrace_freebsd_arm64
env:
- GITHUB_TOKEN: ${{ secrets.GT_Token }}
\ No newline at end of file
+ GITHUB_TOKEN: ${{ secrets.GT_Token }}
+
+ publish-new-formula:
+ needs: build
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Runs a single command using the runners shell
+ - name: config git
+ run: |
+ git config --global user.email "${{ secrets.git_mail }}"
+ git config --global user.name "${{ secrets.git_name }}"
+ - name: Clone repo
+ run: |
+ git clone https://github.com/sjlleo/homebrew-nexttrace.git
+ - name: Exec scipt
+ run: |
+ cd homebrew-nexttrace
+ bash genFormula.sh
+ # - name: setup SSH keys and known_hosts
+ # run: |
+ # mkdir -p ~/.ssh
+ # ssh-keyscan github.com >> ~/.ssh/known_hosts
+ # ssh-agent -a $SSH_AUTH_SOCK > /dev/null
+ # ssh-add - <<< "${{ secrets.ID_RSA }}"
+ # env:
+ # SSH_AUTH_SOCK: /tmp/ssh_agent.sock
+ - name: Git Push
+ run: |
+ cd homebrew-nexttrace
+ git commit -am 'Publish a new version with Formula' || true
+ git remote set-url origin https://${{ secrets.gt_token }}@github.com/sjlleo/homebrew-nexttrace.git
+ git push
+ # env:
+ # SSH_AUTH_SOCK: /tmp/ssh_agent.sock
+ - run: echo "🍏 This job's status is ${{ job.status }}."
\ No newline at end of file
diff --git a/.github/workflows/publishNewFormula.yml b/.github/workflows/publishNewFormula.yml
index 4896a19..972457b 100644
--- a/.github/workflows/publishNewFormula.yml
+++ b/.github/workflows/publishNewFormula.yml
@@ -3,7 +3,6 @@ name: Publish New Formula
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
- push:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -22,7 +21,7 @@ jobs:
git config --global user.name "${{ secrets.git_name }}"
- name: Clone repo
run: |
- git clone https://github.com/xgadget-lab/homebrew-nexttrace.git
+ git clone https://github.com/sjlleo/homebrew-nexttrace.git
- name: Exec scipt
run: |
cd homebrew-nexttrace
@@ -39,7 +38,7 @@ jobs:
run: |
cd homebrew-nexttrace
git commit -am 'Publish a new version with Formula' || true
- git remote set-url origin https://${{ secrets.gt_token }}@github.com/xgadget-lab/homebrew-nexttrace.git
+ git remote set-url origin https://${{ secrets.gt_token }}@github.com/sjlleo/homebrew-nexttrace.git
git push
# env:
# SSH_AUTH_SOCK: /tmp/ssh_agent.sock
From 5a7d04ab1e0a6d958ec69142cb088b43c26d5c54 Mon Sep 17 00:00:00 2001
From: sjlleo
Date: Wed, 25 Jan 2023 14:18:16 +0800
Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20IP=20?=
=?UTF-8?q?=E9=AA=A8=E5=B9=B2=E7=BD=91=E5=87=86=E5=BA=A6=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README_zh_CN.md | 26 ++++++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/README_zh_CN.md b/README_zh_CN.md
index f926404..225981a 100644
--- a/README_zh_CN.md
+++ b/README_zh_CN.md
@@ -12,7 +12,7 @@
一款追求轻量化的开源可视化路由跟踪工具。
-
+
@@ -26,6 +26,10 @@
## How To Use
+### Before Using
+
+使用 NextTrace 之前,我们建议您先阅读 [#IP 数据以及精准度说明](https://github.com/sjlleo/nexttrace/blob/main/README_zh_CN.md#ip-%E6%95%B0%E6%8D%AE%E4%BB%A5%E5%8F%8A%E7%B2%BE%E5%87%86%E5%BA%A6%E8%AF%B4%E6%98%8E),在了解您自己的对数据精准度需求以后再进行抉择。
+
### Automated Install
```bash
@@ -230,7 +234,7 @@ Arguments:

-### 第三方 IP 数据库 API 开发接口
+## 第三方 IP 数据库 API 开发接口
NextTrace 所有的的 IP 地理位置 `API DEMO` 可以参考[这里](https://github.com/sjlleo/nexttrace/blob/main/ipgeo/)
@@ -244,7 +248,7 @@ NextTrace 所有的的 IP 地理位置 `API DEMO` 可以参考[这里](https://g
https://github.com/OwO-Network/nexttrace-enhanced
-## Thanks
+## Credits
BGP.TOOLS 提供了本项目的一些数据支持,在此表示由衷地感谢。
@@ -258,6 +262,20 @@ BGP.TOOLS 提供了本项目的一些数据支持,在此表示由衷地感谢
[FFEE_CO](https://github.com/fkx4-p)
-### Others
+## Others
其他第三方 API 尽管集成在本项目内,但是具体的 TOS 以及 AUP,请详见第三方 API 官网。如遇到 IP 数据错误,也请直接联系他们纠错。
+
+## IP 数据以及精准度说明
+
+NextTrace 有多个数据源可以选择,目前默认使用的 LeoMoeAPI 为我们项目维护的数据源。
+
+LeoMoeAPI 早期数据主要来自 IPInsight、IPInfo,随着项目发展,越来越多的志愿者参与进了这个项目。目前 LeoMoeAPI 有近一半的数据是社区提供的,而另外一半主要来自于包含 IPInfo、IPData、BigDataCloud、IPGeoLocation 在内的多个第三方数据。
+
+LeoMoeAPI 的骨干网数据有近 70% 是社区自发反馈又或者是项目组成员校准的,这给本项目的路由跟踪基础功能带来了一定的保证,但是全球骨干网的体量庞大,我们并无能力如 IPIP 等商业公司拥有海量监测节点,这使得 LeoMoeAPI 的数据精准度无法和形如 BestTrace(IPIP)相提并论。
+
+LeoMoeAPI 已经尽力校准了比较常见的骨干网路由,这部分在测试的时候经常会命中,但是如果遇到封闭型 ISP 的路由,大概率可以遇到错误,此类数据不仅是我们,哪怕 IPInsight、IPInfo 也无法正确定位,目前只有 IPIP 能够标记正确,如对此类数据的精确性有着非常高的要求,请务必使用 BestTrace 作为首选。
+
+我们不保证我们的数据一定会及时更新,也不保证数据的精确性,我们希望您在发现数据错误的时候可以前往 issue 页面提交错误报告,谢谢。
+
+当您使用 LeoMoeAPI 即视为您已经完全了解 NextTrace LeoMoeAPI 的数据精确性,并且同意如果您引用 LeoMoeAPI 其中的数据从而引发的一切问题,均由您自己承担。