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:
Christian Hewitt 2012-11-19 20:34:47 +04:00
parent cd03909c97
commit 5e2be356b9

View File

@ -6,10 +6,10 @@ diff -Naur a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp
bool CFileCurl::IsInternet(bool checkDNS /* = true */)
{
- CStdString strURL = "http://www.google.com";
+ CStdString strURL = "http://www.openelec.tv";
+ CStdString strURL = "http://openelec.tv";
if (!checkDNS)
- 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);
Close();