added ENV forcing only encrypted connections

This commit is contained in:
Paolo Asperti 2022-06-22 20:56:01 +02:00
parent 38dee4794a
commit e4b2fc15b6
No known key found for this signature in database
GPG Key ID: 06D46905D19D5182
2 changed files with 6 additions and 3 deletions

View File

@ -11,6 +11,7 @@ RUN \
COPY rootfs /
ENV RELAY relay.example.com
ENV ENCRYPTED_ONLY 0
EXPOSE 21115 21116 21116/udp 21117 21118 21119

View File

@ -1,3 +1,5 @@
#!/command/execlineb -P
posix-cd /data
/usr/bin/hbbs -r $RELAY
#!/command/with-contenv sh
cd /data
PARAMS=
[ "${ENCRYPTED_ONLY}" = "1" ] && PARAMS="-k _"
/usr/bin/hbbs -r $RELAY $PARAMS