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:
EngsShi 2023-04-24 16:44:30 +08:00 committed by GitHub
parent 6b36b255ef
commit 63b9ab50c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ EXPOSE 3000
CMD if [ -n "$PROXY_URL" ]; then \
protocol=$(echo $PROXY_URL | 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); \
conf=/etc/proxychains.conf; \
echo "strict_chain" > $conf; \