mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-10-03 13:06:36 +08:00
修复 Registry token 路由与离线下载错误响应;去掉冗余正则
This commit is contained in:
@@ -29,4 +29,7 @@ func TestCheckGitHubURLRejectsOtherHosts(t *testing.T) {
|
||||
if got := CheckGitHubURL("https://example.com/user/repo/file"); got != nil {
|
||||
t.Fatalf("unexpected match: %#v", got)
|
||||
}
|
||||
if got := CheckGitHubURL("https://download.docker.com/linux/static/stable/x86_64/docker.tgz"); got != nil {
|
||||
t.Fatalf("download.docker.com should be rejected: %#v", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user