网络质量探测 1.1.3:自更新、HTTP/3 与中心节点
版本名 1.1.3,构建号 6。应用标识和签名未改。包含自动更新、覆盖安装、目标历史、IPv4/IPv6 开关、HTTP(含 HTTP/3)以及中心服务端一键添加节点。
This commit is contained in:
1 parent
943259774f
commit
8cdc0f436f
66 files changed
+5489
-78
No files matched your search
+11
-1
@@ -79,9 +79,19 @@ func TestPublicAndPrivateAuth(t *testing.T) {
|
||||
if err := json.NewDecoder(info.Body).Decode(&body); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if body["visibility"] != "public" || body["authRequired"] != false {
|
||||
if body["visibility"] != "public" || body["authRequired"] != false || body["ipFamily"] != true {
|
||||
t.Fatalf("info %+v", body)
|
||||
}
|
||||
profiles, _ := body["profiles"].([]any)
|
||||
seenHTTP := false
|
||||
for _, item := range profiles {
|
||||
if item == "http" {
|
||||
seenHTTP = true
|
||||
}
|
||||
}
|
||||
if !seenHTTP {
|
||||
t.Fatalf("info profiles %+v", body["profiles"])
|
||||
}
|
||||
|
||||
ln, err := net.Listen("tcp", "127.0.0.1:0")
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user