mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
fix xbmc connection-check patch
Checking releases.openelec.tv returns a 403 error as directory listings are denied. XBMC interprets this as a failure resulting in "Connected, but no DNS available" in system info. We now use online.openelec.tv which does not return an error.
This commit is contained in:
parent
61130bb896
commit
e243a066b1
@ -6,10 +6,10 @@ diff -Naur a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp
|
|||||||
bool CFileCurl::IsInternet(bool checkDNS /* = true */)
|
bool CFileCurl::IsInternet(bool checkDNS /* = true */)
|
||||||
{
|
{
|
||||||
- CStdString strURL = "http://www.google.com";
|
- CStdString strURL = "http://www.google.com";
|
||||||
+ CStdString strURL = "http://releases.openelec.tv";
|
+ CStdString strURL = "http://online.openelec.tv";
|
||||||
if (!checkDNS)
|
if (!checkDNS)
|
||||||
- strURL = "http://74.125.19.103"; // www.google.com ip
|
- strURL = "http://74.125.19.103"; // www.google.com ip
|
||||||
+ strURL = "http://212.101.13.11"; // openelec.tv ip
|
+ strURL = "http://212.101.13.11"; // online.openelec.tv ip
|
||||||
|
|
||||||
bool found = Exists(strURL);
|
bool found = Exists(strURL);
|
||||||
Close();
|
Close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user