From 9f1b502d5b4a23e01cf2d08e5898fbf812ed3efe Mon Sep 17 00:00:00 2001 From: balzack Date: Sat, 23 Dec 2023 10:41:04 -0800 Subject: [PATCH] default to existing behavior for allowing unsealed --- net/container/Dockerfile | 2 +- net/server/internal/api_getAccountStatus.go | 2 +- net/server/internal/api_getNodeConfig.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/container/Dockerfile b/net/container/Dockerfile index e2d45eba..7ec8dd8d 100644 --- a/net/container/Dockerfile +++ b/net/container/Dockerfile @@ -36,7 +36,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$ && wget -P /app https://go.dev/dl/go1.18.10.linux-${ARCHITECTURE}.tar.gz \ && tar -C /usr/local -xzf /app/go1.18.10.linux-${ARCHITECTURE}.tar.gz -RUN git clone https://github.com/balzack/databag.git /app/databag +RUN git clone https://github.com/balzack/databag.git -b openwrt /app/databag RUN yarn config set network-timeout 300000 RUN yarn --cwd /app/databag/net/web install diff --git a/net/server/internal/api_getAccountStatus.go b/net/server/internal/api_getAccountStatus.go index 0d30c1c4..98a610b2 100644 --- a/net/server/internal/api_getAccountStatus.go +++ b/net/server/internal/api_getAccountStatus.go @@ -37,7 +37,7 @@ func GetAccountStatus(w http.ResponseWriter, r *http.Request) { status.Searchable = account.Searchable status.Sealable = true status.EnableIce = getBoolConfigValue(CNFEnableIce, false) - status.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, false) + status.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, true) status.PushEnabled = session.PushEnabled status.Seal = seal WriteResponse(w, status) diff --git a/net/server/internal/api_getNodeConfig.go b/net/server/internal/api_getNodeConfig.go index 4426019e..fbddc58e 100644 --- a/net/server/internal/api_getNodeConfig.go +++ b/net/server/internal/api_getNodeConfig.go @@ -17,7 +17,7 @@ func GetNodeConfig(w http.ResponseWriter, r *http.Request) { var config NodeConfig config.Domain = getStrConfigValue(CNFDomain, "") config.AccountStorage = getNumConfigValue(CNFStorage, 0) - config.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, false) + config.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, true) config.EnableImage = getBoolConfigValue(CNFEnableImage, true) config.EnableAudio = getBoolConfigValue(CNFEnableAudio, true) config.EnableVideo = getBoolConfigValue(CNFEnableVideo, true)