smp-server: Names resolver hardening + cleanup

This commit is contained in:
sh
2026-05-29 16:07:57 +00:00
parent 19db2c8a37
commit 3999facde3
10 changed files with 251 additions and 99 deletions
-5
View File
@@ -164,7 +164,6 @@ module Simplex.Messaging.Protocol
FwdResponse (..),
FwdTransmission (..),
LookupKey (..),
unLookupKey,
NameRecord (..),
NameOwner,
mkNameOwner,
@@ -573,10 +572,6 @@ type QueueId = EntityId
newtype LookupKey = LookupKey ByteString
deriving (Eq, Show)
unLookupKey :: LookupKey -> ByteString
unLookupKey (LookupKey s) = s
{-# INLINE unLookupKey #-}
instance Encoding LookupKey where
smpEncode (LookupKey s) = smpEncode s
smpP = do