Commit a10a75d5 authored by nobodyiam's avatar nobodyiam

check meta server real path, fixes https://github.com/ctripcorp/apollo/issues/1413

parent e098232e
......@@ -161,7 +161,8 @@ public class MetaDomainConsts {
for (String address : metaServers) {
address = address.trim();
if (NetUtil.pingUrl(address)) {
//check whether /services/config is accessible
if (NetUtil.pingUrl(address + "/services/config")) {
// select the first available meta server
selectedMetaServerAddressCache.put(metaServerAddresses, address);
serverAvailable = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment