From 320dc6110e21abc879e6fbe71c385df470fdd9eb Mon Sep 17 00:00:00 2001 From: Maritoguionyo <32049334+Maritoguionyo@users.noreply.github.com> Date: Mon, 18 Dec 2023 06:16:02 -0700 Subject: [PATCH] Reply 200 to conntest --- nas/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nas/main.go b/nas/main.go index 181e959..660a91d 100644 --- a/nas/main.go +++ b/nas/main.go @@ -82,6 +82,13 @@ func handleRequest(w http.ResponseWriter, r *http.Request) { return } + // Reply 200 to conntest + if strings.HasPrefix(r.Host, "conntest.") { + // Respond with a 200 status code + replyHTTPError(w, 200, "ok") + return + } + // Stage 1 if match := regexStage1URL.FindStringSubmatch(r.URL.String()); match != nil { val, err := strconv.Atoi(match[1])