Switch to lighter host for HTTP connectivity check.

This commit is contained in:
SticklyMan 2024-03-23 20:51:40 -06:00
parent ac25b304fc
commit 3a484fb5b1
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ function ULib.updateCheck( name, url )
end
local function httpCheck( body, len, headers, httpCode )
if httpCode ~= 200 then
if httpCode >= 200 and httpCode <= 299 then
return
end
@ -181,7 +181,7 @@ local function httpErr()
end
local function downloadForUlibUpdateCheck()
http.Fetch( "http://google.com", httpCheck, httpErr )
http.Fetch( "http://connectivity-check.ubuntu.com/", httpCheck, httpErr )
end
if ULib.AUTOMATIC_UPDATE_CHECKS then

View File

@ -1 +1 @@
1711238607
1711248700