This commit is contained in:
sijinhui 2024-08-13 18:38:34 +08:00
parent e73a5c4f4b
commit d9f324bcf6

View File

@ -75,7 +75,7 @@ EXPOSE 23000
EXPOSE 23001 EXPOSE 23001
ENV KEEP_ALIVE_TIMEOUT=30 ENV KEEP_ALIVE_TIMEOUT=30
CMD if [ -n "$PROXY_URL" ]; then \ CMD wget -qO- myip.ipip.net ; if [ -n "$PROXY_URL" ]; then \
export HOSTNAME="0.0.0.0"; \ export HOSTNAME="0.0.0.0"; \
protocol=$(echo $PROXY_URL | cut -d: -f1); \ protocol=$(echo $PROXY_URL | cut -d: -f1); \
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \ host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \