mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-07-20 18:01:02 -05:00
Merge pull request #29 from Maritoguionyo/conntest-reply-200
Reply 200 to conntest
This commit is contained in:
commit
f2ae21c921
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user