commit
9fafcda744
@ -223,6 +223,12 @@ public class ServerListService implements ApplicationListener<WebServerInitializ
|
|||||||
* @return serverlist
|
* @return serverlist
|
||||||
*/
|
*/
|
||||||
private List<String> getApacheServerList() {
|
private List<String> getApacheServerList() {
|
||||||
|
if (STANDALONE_MODE) {
|
||||||
|
List<String> serverIps = new ArrayList<String>();
|
||||||
|
serverIps.add(getFormatServerAddr(LOCAL_IP));
|
||||||
|
return serverIps;
|
||||||
|
}
|
||||||
|
|
||||||
// 优先从文件读取服务列表
|
// 优先从文件读取服务列表
|
||||||
try {
|
try {
|
||||||
List<String> serverIps = new ArrayList<String>();
|
List<String> serverIps = new ArrayList<String>();
|
||||||
@ -241,7 +247,7 @@ public class ServerListService implements ApplicationListener<WebServerInitializ
|
|||||||
defaultLog.error("nacos-XXXX", "[serverlist] failed to get serverlist from disk!", e);
|
defaultLog.error("nacos-XXXX", "[serverlist] failed to get serverlist from disk!", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isUseAddressServer() && !STANDALONE_MODE) {
|
if (isUseAddressServer()) {
|
||||||
try {
|
try {
|
||||||
HttpResult result = NotifyService.invokeURL(addressServerUrl, null, null);
|
HttpResult result = NotifyService.invokeURL(addressServerUrl, null, null);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user