#!/command/with-contenv bash
set -euo pipefail

if [ "${XRAY_ENABLED:-1}" != "1" ]; then
    exit 0
fi

if [ "${XRAY_TRANSPARENT:-1}" = "1" ]; then
    bash /usr/local/bin/scripts/transparent-proxy.sh setup
fi
