Add use-proxy support to health extra args (#2973)

This commit is contained in:
Jeff Sandberg authored and GitHub committed 2024-07-08 07:30:37 -05:00
1 parent 2023f5aa31
commit 11d8d917f2
2 files changed
+10 -1

No files matched your search

+6
View File
@@ -227,6 +227,12 @@ MC_HEALTH_EXTRA_ARGS=(
--use-server-list-ping
)
" > /data/.mc-health.env
elif isTrue "$USES_PROXY_PROTOCOL"; then
echo "
MC_HEALTH_EXTRA_ARGS=(
--use-proxy
)
" > /data/.mc-health.env
else
rm -f /data/.mc-health.env
fi