mirror of
https://github.com/TeamUlysses/ulib.git
synced 2025-03-04 03:03:13 -05:00
Switch to lighter host for HTTP connectivity check.
This commit is contained in:
parent
ac25b304fc
commit
3a484fb5b1
@ -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
|
||||
|
@ -1 +1 @@
|
||||
1711238607
|
||||
1711248700
|
||||
|
Loading…
Reference in New Issue
Block a user