This is an automated email from the ASF dual-hosted git repository.

Caideyipi pushed a commit to branch sync_from_iotdb_master_20260528
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit f9f6604313b42a7483f3facccf6b7b019fcbda6e
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 156d1e10a26..8ed83ec4582 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;
 

Reply via email to