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