Browse Source

Merge pull request #187 from attie-argentum/encrypted_only

add '-k _' to hbbr if ENCRYPTED_ONLY is set
RustDesk 3 years ago
parent
commit
6a83ffea62
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docker/rootfs/etc/s6-overlay/s6-rc.d/hbbr/run

+ 3 - 1
docker/rootfs/etc/s6-overlay/s6-rc.d/hbbr/run

@@ -1,3 +1,5 @@
1
 #!/command/with-contenv sh
1
 #!/command/with-contenv sh
2
 cd /data
2
 cd /data
3
-/usr/bin/hbbr
3
+PARAMS=
4
+[ "${ENCRYPTED_ONLY}" = "1" ] && PARAMS="-k _"
5
+/usr/bin/hbbr $PARAMS