From 0af97b963bfb27b35a63294e1dfa675313fe3953 Mon Sep 17 00:00:00 2001 From: Gareth Williams Date: Wed, 7 Aug 2024 10:53:47 +0100 Subject: [PATCH] Add a few mojang urls to the url checker --- consts.go | 12 ++++++++++++ main.go | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/consts.go b/consts.go index 54734d7..1cbe53b 100644 --- a/consts.go +++ b/consts.go @@ -20,6 +20,18 @@ var ( ExpectedStatusCode: http.StatusOK, ExpectedReponse: "", }, + "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json": { + Method: "GET", + ValidateResponse: false, + ExpectedStatusCode: http.StatusOK, + ExpectedReponse: "", + }, + "https://launchermeta.mojang.com/mc/game/version_manifest_v2.json": { + Method: "GET", + ValidateResponse: false, + ExpectedStatusCode: http.StatusOK, + ExpectedReponse: "", + }, "https://maven.fabricmc.net": { Method: "HEAD", ValidateResponse: false, diff --git a/main.go b/main.go index 45f7bf6..f813533 100644 --- a/main.go +++ b/main.go @@ -88,7 +88,7 @@ func main() { } else if !n.Success && !n.Error { pterm.Warning.Println(n.Status) } else { - pterm.Success.Println(n.Status) + pterm.Success.Printfln("%s: %s", n.URL, n.Status) } }