Skip to content

Commit c528ea4

Browse files
authored
smp server: update versions (#1433)
1 parent 3d4e0b0 commit c528ea4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Simplex/Messaging/Server/Main.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import Simplex.Messaging.Server.Information
4747
import Simplex.Messaging.Server.MsgStore.Journal (JournalStoreConfig (..))
4848
import Simplex.Messaging.Server.MsgStore.Types (AMSType (..), SMSType (..), newMsgStore)
4949
import Simplex.Messaging.Server.QueueStore.STM (readQueueStore)
50-
import Simplex.Messaging.Transport (batchCmdsSMPVersion, sendingProxySMPVersion, simplexMQVersion, supportedServerSMPRelayVRange)
50+
import Simplex.Messaging.Transport (batchCmdsSMPVersion, currentServerSMPRelayVersion, simplexMQVersion, supportedServerSMPRelayVRange)
5151
import Simplex.Messaging.Transport.Client (SocksProxy, TransportHost (..), defaultSocksProxy)
5252
import Simplex.Messaging.Transport.Server (ServerCredentials (..), TransportServerConfig (..), defaultTransportServerConfig)
5353
import Simplex.Messaging.Util (eitherToMaybe, ifM, safeDecodeUtf8, tshow)
@@ -447,7 +447,7 @@ smpServerCLI_ generateSite serveStaticFiles attachStaticFiles cfgPath logPath =
447447
defaultSMPClientAgentConfig
448448
{ smpCfg =
449449
(smpCfg defaultSMPClientAgentConfig)
450-
{ serverVRange = mkVersionRange batchCmdsSMPVersion sendingProxySMPVersion,
450+
{ serverVRange = mkVersionRange batchCmdsSMPVersion currentServerSMPRelayVersion,
451451
agreeSecret = True,
452452
networkConfig =
453453
defaultNetworkConfig

src/Simplex/Messaging/Transport.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ currentServerSMPRelayVersion = VersionSMP 12
198198
-- to prevent client version fingerprinting by the
199199
-- destination relays when clients upgrade at different times.
200200
proxiedSMPRelayVersion :: VersionSMP
201-
proxiedSMPRelayVersion = VersionSMP 11
201+
proxiedSMPRelayVersion = VersionSMP 12
202202

203203
-- minimal supported protocol version is 4
204204
-- TODO remove code that supports sending commands without batching

0 commit comments

Comments
 (0)