From ae17d1439b35b55212c3a30712e0a60b1d6a99c0 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 30 六月 2021 11:15:53 +0800
Subject: [PATCH] support tcp pub/sub.

---
 box/center.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/box/center.cpp b/box/center.cpp
index 78135d1..e0abbb3 100644
--- a/box/center.cpp
+++ b/box/center.cpp
@@ -146,7 +146,7 @@
 				replyer(reply);
 				auto hosts = center->FindRemoteSubClients(pub.topic());
 				for (auto &host : hosts) {
-					tcp_proxy.Publish(host, kBHCenterPort, pub.SerializeAsString());
+					tcp_proxy.Publish(host, kBHCenterPort, msg.content());
 				}
 			}
 		};

--
Gitblit v1.8.0