chore(connector): disable connector flag and WS server by default (#16146)

Fixes #16101
This commit is contained in:
Jonathan Rainville 2024-08-19 12:52:10 -04:00 committed by GitHub
parent 4673c1af57
commit afc129ee5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -3,9 +3,9 @@ import os
const DEFAULT_FLAG_DAPPS_ENABLED = false
const DEFAULT_FLAG_SWAP_ENABLED = true
const DEFAULT_FLAG_CONNECTOR_ENABLED = true
const DEFAULT_FLAG_CONNECTOR_ENABLED* = false
proc boolToEnv(defaultValue: bool): string =
proc boolToEnv*(defaultValue: bool): string =
return if defaultValue: "1" else: "0"
QtObject:

View File

@ -1,5 +1,7 @@
import os, sequtils, strutils, stew/shims/strformat, chronicles
import app/global/feature_flags
import # vendor libs
confutils
@ -261,12 +263,12 @@ type StatusDesktopConfig = object
name: "USE_MOCKED_KEYCARD"
abbr: "use-mocked-keycard" .}: bool
httpApiEnabled* {.
defaultValue: true
defaultValue: getEnv("FLAG_CONNECTOR_ENABLED", boolToEnv(DEFAULT_FLAG_CONNECTOR_ENABLED)) != "0"
desc: "Enable HTTP RPC API"
name: "HTTP_API"
abbr: "http-api" .}: bool
wsApiEnabled* {.
defaultValue: true
defaultValue: getEnv("FLAG_CONNECTOR_ENABLED", boolToEnv(DEFAULT_FLAG_CONNECTOR_ENABLED)) != "0"
desc: "Enable WebSocket RPC API"
name: "WS_API"
abbr: "ws-api" .}: bool