Fixing problems where PSS's client socket's IP was different than what the client was sending in PubSubClientSubscription
This commit is contained in:
1 parent
510e7b0050
commit
96a08500fb
1 file changed
+2
-1
@@ -144,7 +144,8 @@ namespace BCG {
|
||||
private void _handle_sub(string sender, SubscribeMsg sub_msg) {
|
||||
//TODO: we make this correction here, since C++ clients are not sending this correctly
|
||||
bts.Log.Gen.info($"PubSubMessageReactor._handle_sub sender: {sender} sub_msg: {sub_msg}");
|
||||
if (String.IsNullOrEmpty(sub_msg.connection) || sub_msg.connection.Contains("unset")) {
|
||||
if (String.IsNullOrEmpty(sub_msg.connection) || String.Compare(sender, sub_msg.connection) != 0) {
|
||||
bts.Log.Gen.error($"PubSubMessageReactor._handle_sub correcting sub_msg.connection sender: {sender} sub_msg.connection: {sub_msg.connection}");
|
||||
sub_msg.connection = sender;
|
||||
}
|
||||
bts.Log.Gen.info($"PubSubMessageReactor._handle_sub(corrected) sender: {sender} sub_msg: {sub_msg}");
|
||||
|
||||
Reference in new issue
Block a user