fix: 更新依赖,ping值检测设置3次测试取平均值

This commit is contained in:
spiritlhl
2025-11-04 11:51:10 +00:00
parent 6111554225
commit 3c45667c55
3 changed files with 6 additions and 6 deletions

View File

@@ -412,7 +412,7 @@ Abuser 或 Abuse 的滥用得分会直接影响机器的正常使用(中国境
有时候路由信息完全藏起来了,只知道实际使用的延迟低,实际可能也是优质线路只是查不到信息,这就没办法直接识别了。
所有测不出来失败的地址以及延迟大于等于999ms的延迟都设为了999延迟超过这个也证明目标延迟过大影响使用此时认为目标不可用就行。
所有测不出来失败的地址以及延迟大于等于9999ms的延迟都设为了9999,延迟超过这个也证明目标延迟过大影响使用,此时认为目标不可用就行。
### **PING值测试**
@@ -760,7 +760,7 @@ Dependency project: [https://github.com/oneclickvirt/pingtest](https://github.co
Measure the latency from the current IP address to each TG data center and major websites.
All addresses that cannot be tested for failure, as well as those with latency greater than or equal to 999ms, have their latency set to 999. Latency exceeding this threshold also indicates excessive target latency that impairs usability. At this point, the target should be considered unavailable.
All addresses that cannot be tested for failure, as well as those with latency greater than or equal to 9999ms, have their latency set to 9999. Latency exceeding this threshold also indicates excessive target latency that impairs usability. At this point, the target should be considered unavailable.
### Nearby Speed Testing
@@ -1094,7 +1094,7 @@ IPタイプの分類について詳しく説明する必要がある
現在のIPアドレスからTGの各データセンターおよび主要ウェブサイトまでの遅延を測定します。
検出不能な失敗アドレスおよび遅延が999ms以上のものは、遅延を999に設定する。この値を超える遅延は対象の遅延が過大で利用に影響することを示すため、この時点で対象は利用不可と判断すればよい。
検出不能な失敗アドレスおよび遅延が9999ms以上のものは、遅延を9999に設定する。この値を超える遅延は対象の遅延が過大で利用に影響することを示すため、この時点で対象は利用不可と判断すればよい。
### 近隣スピードテスト

2
go.mod
View File

@@ -14,7 +14,7 @@ require (
github.com/oneclickvirt/gostun v0.0.5-20250727155022
github.com/oneclickvirt/memorytest v0.0.10-20250924154648
github.com/oneclickvirt/nt3 v0.0.10-20251103023436
github.com/oneclickvirt/pingtest v0.0.9-20251102150730
github.com/oneclickvirt/pingtest v0.0.9-20251104112920
github.com/oneclickvirt/portchecker v0.0.3-20250728015900
github.com/oneclickvirt/security v0.0.7-20251030094114
github.com/oneclickvirt/speedtest v0.0.11-20251102151740

4
go.sum
View File

@@ -120,8 +120,8 @@ github.com/oneclickvirt/memorytest v0.0.10-20250924154648 h1:trk6oZ7xs1eVtr+6oIv
github.com/oneclickvirt/memorytest v0.0.10-20250924154648/go.mod h1:4kiHsEWkW9r3/1ZcV5xIweU0smiKP0IRfQj74AUIiVI=
github.com/oneclickvirt/nt3 v0.0.10-20251103023436 h1:vXqiU/HE0EXGf17LHyIQx8xYJz3+MOCHtlbfKyvt3cQ=
github.com/oneclickvirt/nt3 v0.0.10-20251103023436/go.mod h1:yo1ufkduFt9QjqG7nqSUf1D3YlQOmFpdlTYniJfclQI=
github.com/oneclickvirt/pingtest v0.0.9-20251102150730 h1:pipqyJUaUI0K5waFvDNNfqbIikMp+9Kg8Dw/kLEUYF8=
github.com/oneclickvirt/pingtest v0.0.9-20251102150730/go.mod h1:gxwsxxwitNQiGq2OI0ZogYoOLwc8DtuOdSRe6/EvRqs=
github.com/oneclickvirt/pingtest v0.0.9-20251104112920 h1:j3Fjhy0YHT/VF7iuAVVELaRXkquvRd64tWWfFLJs01o=
github.com/oneclickvirt/pingtest v0.0.9-20251104112920/go.mod h1:gxwsxxwitNQiGq2OI0ZogYoOLwc8DtuOdSRe6/EvRqs=
github.com/oneclickvirt/portchecker v0.0.3-20250728015900 h1:AomzdppSOFB70AJESQhlp0IPbsHTTJGimAWDk2TzCWM=
github.com/oneclickvirt/portchecker v0.0.3-20250728015900/go.mod h1:9sjMDPCd4Z40wkYB0S9gQPGH8YPtnNE1ZJthVIuHUzA=
github.com/oneclickvirt/security v0.0.7-20251030094114 h1:Ax8J1TYqprXyiWNAIJJ3xhoyGhvBlKw4m9j6va5Q2nM=