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

JackieTien97 pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/dev/1.3 by this push:
     new 93275a6e975 fix(client-cpp): ignore 0.0.0.0 in write redirection
93275a6e975 is described below

commit 93275a6e975e46831f4f83dc1ac1bc4b168e2a0b
Author: Hongzhi Gao <[email protected]>
AuthorDate: Thu May 28 11:45:51 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 6e8d37e6199..cb7dbc581d9 100644
--- a/iotdb-client/client-cpp/src/main/Session.cpp
+++ b/iotdb-client/client-cpp/src/main/Session.cpp
@@ -1780,7 +1780,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") return;
+    if (endPoint.ip == "0.0.0.0") return;
     deviceIdToEndpoint[deviceId] = endPoint;
 
     shared_ptr<SessionConnection> newConnection;
@@ -1803,7 +1803,7 @@ void Session::handleRedirection(const std::string& 
deviceId, TEndPoint endPoint)
 
 void Session::handleRedirection(const std::shared_ptr<storage::IDeviceID>& 
deviceId, TEndPoint endPoint) {
     if (!enableRedirection_) return;
-    if (endPoint.ip == "127.0.0.1") return;
+    if (endPoint.ip == "0.0.0.0") return;
     tableModelDeviceIdToEndpoint[deviceId] = endPoint;
 
     shared_ptr<SessionConnection> newConnection;

Reply via email to