This is an automated email from the ASF dual-hosted git repository.
JackieTien97 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 05a816d1b32 fix(client-cpp): ignore 0.0.0.0 in write redirection
05a816d1b32 is described below
commit 05a816d1b329d85f1e47e36b612b5692ff35c1bd
Author: Hongzhi Gao <[email protected]>
AuthorDate: Thu May 28 11:46:16 2026 +0800
fix(client-cpp): ignore 0.0.0.0 in write redirection
---
iotdb-client/client-cpp/src/main/Session.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/iotdb-client/client-cpp/src/main/Session.cpp
b/iotdb-client/client-cpp/src/main/Session.cpp
index b6f6afad0fa..a2b07ed7afb 100644
--- a/iotdb-client/client-cpp/src/main/Session.cpp
+++ b/iotdb-client/client-cpp/src/main/Session.cpp
@@ -1953,7 +1953,7 @@ void Session::handleQueryRedirection(TEndPoint endPoint) {
void Session::handleRedirection(const std::string& deviceId, TEndPoint
endPoint) {
if (!enableRedirection_)
return;
- if (endPoint.ip == "127.0.0.1")
+ if (endPoint.ip == "0.0.0.0")
return;
deviceIdToEndpoint[deviceId] = endPoint;
@@ -1978,7 +1978,7 @@ void Session::handleRedirection(const
std::shared_ptr<storage::IDeviceID>& devic
TEndPoint endPoint) {
if (!enableRedirection_)
return;
- if (endPoint.ip == "127.0.0.1")
+ if (endPoint.ip == "0.0.0.0")
return;
tableModelDeviceIdToEndpoint[deviceId] = endPoint;