From 8577cbfbefe35a96e79e8e35ba9dcafaa9cce1bd Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 24 Nov 2022 15:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'simgear/scene/tsync/terra?= =?UTF-8?q?sync.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simgear/scene/tsync/terrasync.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index df3de110..7ca5a4a8 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -552,7 +552,10 @@ std::string SGTerraSync::WorkerThread::dnsSelectServerForService(const std::stri if( naptrRequest->entries.empty() ) { SG_LOG(SG_TERRASYNC, SG_ALERT, "Warning: no DNS entry found for '" << _dnsdn << "' '" << naptrRequest->qservice << "'" ); - return {"https://data.kongjian.xin/fgscenery","https://data.kongjian.xin/osm2city"}; + + if (service == "ws20" ) return "https://data.kongjian.xin/fgscenery"; + if (service == "o2c" ) return "https://data.kongjian.xin/osm2city"; + } // walk through responses, they are ordered by 1. order and 2. preference