diff --git a/kernel/util/net.go b/kernel/util/net.go index bace9a366f6..f681ffd3cc9 100644 --- a/kernel/util/net.go +++ b/kernel/util/net.go @@ -100,6 +100,11 @@ func isOnline(checkURL string, skipTlsVerify bool) (ret bool) { for i := 0; i < 3; i++ { resp, err := c.R().Get(checkURL) + + if resp.StatusCode == 401 { + return true + } + if resp.GetHeader("Location") != "" { return true }