Move to mirrorred images for Drone and Dockerfile, linting fixes.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-06-29 15:04:57 +05:00
parent 899c406f09
commit 9e5f98a413
13 changed files with 44 additions and 40 deletions

View File

@@ -35,7 +35,7 @@ func checkAllowedIPs() echo.MiddlewareFunc {
if err != nil {
log.Error().Err(err).Str("subnet", ipToParse).Msg("Failed to parse CIDR. /_api/ endpoint won't be accessible, this should be fixed manually in configuration file!")
// nolint:exhaustivestruct,wrapcheck
// nolint:exhaustruct,wrapcheck
return ectx.JSON(http.StatusInternalServerError, &structs.Reply{Status: structs.StatusFailure, Errors: []structs.Error{structs.ErrInvalidAllowedIPDefined}})
}
@@ -60,7 +60,7 @@ func checkAllowedIPs() echo.MiddlewareFunc {
return next(ectx)
}
// nolint:exhaustivestruct,wrapcheck
// nolint:exhaustruct,wrapcheck
return ectx.JSON(http.StatusBadRequest, &structs.Reply{Status: structs.StatusFailure, Errors: []structs.Error{structs.ErrIPAddressNotAllowed}})
}
}

View File

@@ -62,7 +62,7 @@ func Start() {
}()
// Check that HTTP server was started.
// nolint:exhaustivestruct
// nolint:exhaustruct
httpc := &http.Client{Timeout: time.Second * 1}
checks := 0