From e507a95b558042e1c704783b7e8ef5db28c5360b Mon Sep 17 00:00:00 2001 From: zhongjin Date: Sat, 22 Oct 2022 14:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=9C=B0=E5=9D=80=20terrasyn?= =?UTF-8?q?c.jingweiht.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simgear/scene/tsync/terrasync.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index 86f1eeac..350c8884 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -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());