mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
network_setup.cpp: use global ip and domain for network test
This commit is contained in:
@@ -702,9 +702,9 @@ void CNetworkSetup::testNetworkSettings()
|
|||||||
//set default testdomain
|
//set default testdomain
|
||||||
std::string defaultsite = "www.google.de";
|
std::string defaultsite = "www.google.de";
|
||||||
|
|
||||||
//set wiki-URL and wiki-IP
|
//set test-URL and test-IP
|
||||||
std::string wiki_URL = "wiki.tuxbox-neutrino.org";
|
std::string test_URL = "tuxbox-neutrino.org";
|
||||||
std::string wiki_IP = "93.218.207.212";
|
std::string test_IP = "89.31.143.1";
|
||||||
|
|
||||||
//get www-domain testsite from /.version
|
//get www-domain testsite from /.version
|
||||||
CConfigFile config('\t');
|
CConfigFile config('\t');
|
||||||
@@ -761,12 +761,12 @@ void CNetworkSetup::testNetworkSettings()
|
|||||||
text += std::string(g_Locale->getText(LOCALE_NETWORKMENU_NTPSERVER)) + ":\n";
|
text += std::string(g_Locale->getText(LOCALE_NETWORKMENU_NTPSERVER)) + ":\n";
|
||||||
text += offset + g_settings.network_ntpserver + " " + mypinghost(g_settings.network_ntpserver) + "\n";
|
text += offset + g_settings.network_ntpserver + " " + mypinghost(g_settings.network_ntpserver) + "\n";
|
||||||
}
|
}
|
||||||
//Wiki
|
//Test-URL
|
||||||
text += wiki_URL + ":\n";
|
text += test_URL + ":\n";
|
||||||
text += offset + "via IP (" + wiki_IP + "): " + mypinghost(wiki_IP) + "\n";
|
text += offset + "via IP (" + test_IP + "): " + mypinghost(test_IP) + "\n";
|
||||||
if (pinghost(our_nameserver) == 1)
|
if (pinghost(our_nameserver) == 1)
|
||||||
{
|
{
|
||||||
text += offset + "via DNS: " + mypinghost(wiki_URL) + "\n";
|
text += offset + "via DNS: " + mypinghost(test_URL) + "\n";
|
||||||
//testsite (or defaultsite)
|
//testsite (or defaultsite)
|
||||||
text += testsite + ":\n";
|
text += testsite + ":\n";
|
||||||
text += offset + "via DNS: " + mypinghost(testsite) + "\n";
|
text += offset + "via DNS: " + mypinghost(testsite) + "\n";
|
||||||
|
Reference in New Issue
Block a user