From 1c8d4b4b6ee39a4e673142835f48274f64bd68ec Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Wed, 1 May 2019 15:31:54 -0700 Subject: [PATCH] Make sure we are set to RMSG for send to Gateways Signed-off-by: Derek Collison --- server/gateway.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/gateway.go b/server/gateway.go index 9b748f1a9a..da8aeae21b 100644 --- a/server/gateway.go +++ b/server/gateway.go @@ -2139,6 +2139,9 @@ func (c *client) sendMsgToGateways(acc *Account, msg, subject, reply []byte, qgr // Get a subscription from the pool sub := subPool.Get().(*subscription) + // Make sure we are an 'R' proto + c.msgb[0] = 'R' + // Check if the subject is on "$GR..", // and if so, send to that GW regardless of its // interest on the real subject (that is, skip the