mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
network_setup.cpp: add ntp-server to network-test
Origin commit data
------------------
Commit: 7a7aec266a
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-10-11 (Thu, 11 Oct 2012)
Origin message was:
------------------
- network_setup.cpp: add ntp-server to network-test
This commit is contained in:
@@ -767,6 +767,12 @@ void CNetworkSetup::testNetworkSettings()
|
||||
//Nameserver
|
||||
text += (std::string)g_Locale->getText(LOCALE_NETWORKMENU_NAMESERVER) + ":\n";
|
||||
text += offset + (std::string)our_nameserver + " " + (std::string)mypinghost(our_nameserver) + "\n";
|
||||
//NTPserver
|
||||
if ( (pinghost(our_nameserver) == 1) && g_settings.network_ntpenable && (g_settings.network_ntpserver != "") )
|
||||
{
|
||||
text += (std::string)g_Locale->getText(LOCALE_NETWORKMENU_NTPSERVER) + ":\n";
|
||||
text += offset + g_settings.network_ntpserver + " " + (std::string)mypinghost(g_settings.network_ntpserver.c_str()) + "\n";
|
||||
}
|
||||
//Wiki
|
||||
text += wiki_URL + ":\n";
|
||||
text += offset + "via IP (" + wiki_IP + "): " + (std::string)mypinghost(wiki_IP.c_str()) + "\n";
|
||||
|
Reference in New Issue
Block a user