summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrun-gomf.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/run-gomf.bash b/run-gomf.bash
index 494e259..05146cf 100755
--- a/run-gomf.bash
+++ b/run-gomf.bash
@@ -27,7 +27,7 @@ set -e
# The hostname to serve uploaded files on
#
-# By default, any connection can serve files on path /u/$file, but, if enalbed,
+# By default, any connection can serve files on path /u/$file, but, if enabled,
# this host will serve them directly on /$file.
#UPLOAD_HOST=u.example.com
@@ -59,7 +59,7 @@ set -e
# reverse-proxied.
#HTTP_PORT=80
-# The port to listen on for HTTP
+# The port to listen on for HTTPS
#
# 443 for a standard HTTPS server. Requires TLS_CERT and TLS_KEY
#HTTPS_PORT=443
@@ -161,7 +161,7 @@ flags=()
[ -n "${ID_CHARSET}" ] && flags+=(--id-charset "$ID_CHARSET")
[ -n "${ID_LENGTH}" ] && flags+=(--id-length "$ID_LENGTH")
[ -n "${MAX_SIZE_MIB}" ] && flags+=(--max-size "$((MAX_SIZE_MIB*1024*1024))")
-[ -n "$WHITELIST" ] && flags+=(--whitelist)
+[ "${WHITELIST:-0}" -ne 0 ] && flags+=(--whitelist)
oldifs="$IFS" IFS=,
[ -n "$FILTER_EXT" ] && flags+=(--filter-ext "${FILTER_EXT[*]}")
[ -n "$FILTER_MIME" ] && flags+=(--filter-ext "${FILTER_MIME[*]}")