disable sso

This commit is contained in:
Lukas Prettenthaler 2022-05-24 11:03:18 +02:00
parent d560485234
commit e2a1c86072
No known key found for this signature in database
GPG Key ID: 58E5A82932BCE65D
2 changed files with 15 additions and 1 deletions

View File

@ -7,11 +7,13 @@ FROM ${ALPINE_IMAGE}:${ALPINE_VERSION} as builder
ARG ZT_COMMIT
COPY patches /patches
RUN apk add --update alpine-sdk linux-headers openssl-dev \
&& apk add cargo || true \
&& git clone --quiet https://github.com/zerotier/ZeroTierOne.git /src \
&& git -C src reset --quiet --hard ${ZT_COMMIT} \
&& cd /src \
&& git apply /patches/* \
&& make -f make-linux.mk
FROM ${ALPINE_IMAGE}:${ALPINE_VERSION}

12
patches/disable-sso.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/make-linux.mk b/make-linux.mk
index 1caf3acc..ade5809a 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -274,6 +274,7 @@ ifeq ($(ZT_IA32),1)
ZT_USE_X64_ASM_ED25519=0
endif
+ZT_SSO_SUPPORTED=0
ifeq ($(ZT_SSO_SUPPORTED), 1)
ifeq ($(ZT_EMBEDDED),)
override DEFS+=-DZT_SSO_SUPPORTED=1