mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-10 20:16:37 +08:00
proxy host can be use domain
like this : PROXY_URL="socks5://host.docker.internal:7890" fix "proxy host.docker.internal has invalid value or is not numeric"
This commit is contained in:
parent
6b36b255ef
commit
63b9ab50c0
@ -43,6 +43,7 @@ EXPOSE 3000
|
|||||||
CMD if [ -n "$PROXY_URL" ]; then \
|
CMD if [ -n "$PROXY_URL" ]; then \
|
||||||
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); \
|
||||||
|
host=$(nslookup $host | grep -A1 'Name:' | tail -1 | awk '{print $2}') \
|
||||||
port=$(echo $PROXY_URL | cut -d: -f3); \
|
port=$(echo $PROXY_URL | cut -d: -f3); \
|
||||||
conf=/etc/proxychains.conf; \
|
conf=/etc/proxychains.conf; \
|
||||||
echo "strict_chain" > $conf; \
|
echo "strict_chain" > $conf; \
|
||||||
|
Loading…
Reference in New Issue
Block a user