mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 19:42:13 +00:00
core: enforce allowRemoteCommand on the host (#7370)
This commit is contained in:
1 parent
493fb9cee8
commit
6fcfbd54c5
7 files changed
+25
-15
No files matched your search
@@ -695,6 +695,11 @@ planResolveModeP =
|
||||
"never" -> pure PRMNever
|
||||
_ -> fail "bad PlanResolveMode"
|
||||
|
||||
data CommandSource
|
||||
= CSLocal -- entered on this device
|
||||
| CSRemoteHost RemoteHostId -- forwarded to a paired remote host
|
||||
| CSRemoteCtrl -- received from a paired remote controller
|
||||
|
||||
allowRemoteCommand :: ChatCommand -> Bool -- XXX: consider using Relay/Block/ForceLocal
|
||||
allowRemoteCommand = \case
|
||||
StartChat {} -> False
|
||||
|
||||
Reference in new issue
Block a user