|
|
|
@ -1186,12 +1186,20 @@ void SGTerraSync::reinit()
|
|
|
|
|
SG_LOG(SG_TERRASYNC,SG_INFO,"DNS server override:" << ns);
|
|
|
|
|
_workerThread->setDNSServer(ns);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
#if 1
|
|
|
|
|
// leave it hardcoded for now, not sure about the security implications for now
|
|
|
|
|
_workerThread->setDNSDN( "terrasync.flightgear.org");
|
|
|
|
|
#else
|
|
|
|
|
_workerThread->setDNSDN( _terraRoot->getStringValue("dnsdn","terrasync.flightgear.org") );
|
|
|
|
|
#endif
|
|
|
|
|
*/
|
|
|
|
|
if (_terraRoot->getBoolValue("global", true)) {
|
|
|
|
|
_workerThread->setDNSDN( "terrasync.flightgear.org");
|
|
|
|
|
} else {
|
|
|
|
|
_workerThread->setDNSDN( "terrasync.jingweiht.com");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SGPath sceneryRoot{_terraRoot->getStringValue("scenery-dir", "")};
|
|
|
|
|
_workerThread->setLocalDir(sceneryRoot.utf8Str());
|
|
|
|
|