From 55178a6b2cee8db0a16310f7c0b2c0f5aa949ef3 Mon Sep 17 00:00:00 2001 From: nkorange Date: Tue, 22 Jan 2019 15:43:23 +0800 Subject: [PATCH] #498 Fix bug --- .../java/com/alibaba/nacos/naming/web/ApiCommands.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/web/ApiCommands.java b/naming/src/main/java/com/alibaba/nacos/naming/web/ApiCommands.java index eb124adf9..88b7a5e33 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/web/ApiCommands.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/web/ApiCommands.java @@ -1093,6 +1093,11 @@ public class ApiCommands { onAddIP4Dom(requestWrapper); + proxyParams.put("clientIP", NetUtils.localServer()); + proxyParams.put("notify", "true"); + proxyParams.put("term", String.valueOf(RaftCore.getPeerSet().local().term)); + proxyParams.put("timestamp", String.valueOf(timestamp)); + if (domain.getEnableHealthCheck() && !domain.getEnableClientBeat()) { syncOnAddIP4Dom(namespaceId, dom, proxyParams); } else { @@ -1388,6 +1393,11 @@ public class ApiCommands { onRemvIP4Dom(requestWrapper); + proxyParams.put("clientIP", NetUtils.localServer()); + proxyParams.put("notify", "true"); + proxyParams.put("term", String.valueOf(RaftCore.getPeerSet().local().term)); + proxyParams.put("timestamp", String.valueOf(timestamp)); + if (domain.getEnableHealthCheck() && !domain.getEnableClientBeat()) { syncOnRemvIP4Dom(namespaceId, dom, proxyParams); } else {