From 63b9ab50c076a5612965d74ec3d3afa417e50c0c Mon Sep 17 00:00:00 2001 From: EngsShi Date: Mon, 24 Apr 2023 16:44:30 +0800 Subject: [PATCH] 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" --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 7ed7bc155..2b8864685 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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; \