Update Go, deps and linter

This commit is contained in:
Daniel
2022-08-30 16:13:26 +02:00
parent 44b5375bb4
commit 8cf882f4d4
22 changed files with 87 additions and 88 deletions

View File

@@ -468,7 +468,7 @@ func checkOnlineStatus(ctx context.Context) {
}
request := (&http.Request{
Method: "GET",
Method: http.MethodGet,
URL: parsedPortalTestURL,
Close: true,
}).WithContext(ctx)
@@ -495,7 +495,7 @@ func checkOnlineStatus(ctx context.Context) {
}
// direct response
if response.StatusCode == 200 {
if response.StatusCode == http.StatusOK {
updateOnlineStatus(StatusPortal, &url.URL{
Scheme: "http",
Host: SpecialCaptivePortalDomain,