Merge pull request #148 from sijinhui/dev

print ip
This commit is contained in:
sijinhui 2024-08-13 18:39:24 +08:00 committed by GitHub
commit bf99fd25d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ EXPOSE 23000
EXPOSE 23001
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"; \
protocol=$(echo $PROXY_URL | cut -d: -f1); \
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \