From 98f00109f3c69588a20ce6dd68ef81d143831dcf Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Thu, 23 Sep 2021 09:22:15 +0200 Subject: [PATCH] fix get proxy address ip --- .github/workflows/build_bromite.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_bromite.yaml b/.github/workflows/build_bromite.yaml index dd47dd9..46b1462 100644 --- a/.github/workflows/build_bromite.yaml +++ b/.github/workflows/build_bromite.yaml @@ -44,7 +44,7 @@ jobs: shell: bash run: | if ! [[ -z "${HTTP_PROXY}" ]]; then - PROXY_ADDR=http://$(hostname -I | xargs):8118 + PROXY_ADDR=http://$(hostname -I | cut -d' ' -f1 | xargs):8118 echo "PROXY_ADDR=$PROXY_ADDR" >> $GITHUB_ENV sudo iptables -D INPUT -p tcp -s localhost --dport 8118 -j ACCEPT sudo iptables -D INPUT -p tcp --dport 8118 -j DROP