Skip to content

Commit 49b7017

Browse files
committed
smp protocol: fix encoding for SOKS/ENDS responses
1 parent 11ae20e commit 49b7017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Simplex/Messaging/Protocol.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ instance ProtocolEncoding SMPVersion ErrorType BrokerMsg where
19481948
e :: Encoding a => a -> ByteString
19491949
e = smpEncode
19501950
serviceResp tag n idsHash
1951-
| v >= serviceCertsSMPVersion = e (tag, ' ', n, idsHash)
1951+
| v >= rcvServiceSMPVersion = e (tag, ' ', n, idsHash)
19521952
| otherwise = e (tag, ' ', n)
19531953

19541954
protocolP v = \case
@@ -1993,7 +1993,7 @@ instance ProtocolEncoding SMPVersion ErrorType BrokerMsg where
19931993
PONG_ -> pure PONG
19941994
where
19951995
serviceRespP resp
1996-
| v >= serviceCertsSMPVersion = resp <$> _smpP <*> smpP
1996+
| v >= rcvServiceSMPVersion = resp <$> _smpP <*> smpP
19971997
| otherwise = resp <$> _smpP <*> pure mempty
19981998

19991999
fromProtocolError = \case

0 commit comments

Comments
 (0)