smp server: update versions (#1433)

This commit is contained in:
Evgeny
2025-01-12 22:11:18 +00:00
committed by GitHub
parent 3d4e0b06c0
commit c528ea4f31
2 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ import Simplex.Messaging.Server.Information
import Simplex.Messaging.Server.MsgStore.Journal (JournalStoreConfig (..))
import Simplex.Messaging.Server.MsgStore.Types (AMSType (..), SMSType (..), newMsgStore)
import Simplex.Messaging.Server.QueueStore.STM (readQueueStore)
import Simplex.Messaging.Transport (batchCmdsSMPVersion, sendingProxySMPVersion, simplexMQVersion, supportedServerSMPRelayVRange)
import Simplex.Messaging.Transport (batchCmdsSMPVersion, currentServerSMPRelayVersion, simplexMQVersion, supportedServerSMPRelayVRange)
import Simplex.Messaging.Transport.Client (SocksProxy, TransportHost (..), defaultSocksProxy)
import Simplex.Messaging.Transport.Server (ServerCredentials (..), TransportServerConfig (..), defaultTransportServerConfig)
import Simplex.Messaging.Util (eitherToMaybe, ifM, safeDecodeUtf8, tshow)
@@ -447,7 +447,7 @@ smpServerCLI_ generateSite serveStaticFiles attachStaticFiles cfgPath logPath =
defaultSMPClientAgentConfig
{ smpCfg =
(smpCfg defaultSMPClientAgentConfig)
{ serverVRange = mkVersionRange batchCmdsSMPVersion sendingProxySMPVersion,
{ serverVRange = mkVersionRange batchCmdsSMPVersion currentServerSMPRelayVersion,
agreeSecret = True,
networkConfig =
defaultNetworkConfig

View File

@@ -198,7 +198,7 @@ currentServerSMPRelayVersion = VersionSMP 12
-- to prevent client version fingerprinting by the
-- destination relays when clients upgrade at different times.
proxiedSMPRelayVersion :: VersionSMP
proxiedSMPRelayVersion = VersionSMP 11
proxiedSMPRelayVersion = VersionSMP 12
-- minimal supported protocol version is 4
-- TODO remove code that supports sending commands without batching