mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
mod connection-check patch URL to remove www.
www.openelec.tv generates a 301 failure before redirecting to openelec.tv resulting in multiple http requests; this ensures we check the correct URL first-time
This commit is contained in:
parent
cd03909c97
commit
5e2be356b9
@ -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://www.openelec.tv";
|
+ CStdString strURL = "http://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.10"; // www.openelec.tv ip
|
+ strURL = "http://212.101.13.10"; // openelec.tv ip
|
||||||
|
|
||||||
bool found = Exists(strURL);
|
bool found = Exists(strURL);
|
||||||
Close();
|
Close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user