mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 08:33:09 +00:00
core: option to run client as chat relay; cli api to get, set relays (#6407)
This commit is contained in:
1 parent
79bdc03529
commit
5ddc454049
14 files changed
+240
-61
No files matched your search
@@ -66,6 +66,7 @@ data CoreChatOpts = CoreChatOpts
|
||||
logFile :: Maybe FilePath,
|
||||
tbqSize :: Natural,
|
||||
deviceName :: Maybe Text,
|
||||
chatRelay :: Bool,
|
||||
highlyAvailable :: Bool,
|
||||
yesToUpMigrations :: Bool,
|
||||
migrationBackupPath :: Maybe FilePath
|
||||
@@ -233,6 +234,11 @@ coreChatOptsP appDir defaultDbName = do
|
||||
<> metavar "DEVICE"
|
||||
<> help "Device name to use in connections with remote hosts and controller"
|
||||
)
|
||||
chatRelay <-
|
||||
switch
|
||||
( long "relay"
|
||||
<> help "Run as a chat relay client"
|
||||
)
|
||||
highlyAvailable <-
|
||||
switch
|
||||
( long "ha"
|
||||
@@ -269,6 +275,7 @@ coreChatOptsP appDir defaultDbName = do
|
||||
logFile,
|
||||
tbqSize,
|
||||
deviceName,
|
||||
chatRelay,
|
||||
highlyAvailable,
|
||||
yesToUpMigrations,
|
||||
migrationBackupPath
|
||||
|
||||
Reference in new issue
Block a user