Skip to content

Commit

Permalink
alibaba#498 Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorange committed Jan 22, 2019
1 parent fc5db21 commit 55178a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions naming/src/main/java/com/alibaba/nacos/naming/web/ApiCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,11 @@ public String addIP4Dom(HttpServletRequest request) throws Exception {

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 {
Expand Down Expand Up @@ -1388,6 +1393,11 @@ public String remvIP4Dom(HttpServletRequest request) throws Exception {

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 {
Expand Down

0 comments on commit 55178a6

Please sign in to comment.