fix get proxy address ip
This commit is contained in:
parent
647263bccb
commit
98f00109f3
2
.github/workflows/build_bromite.yaml
vendored
2
.github/workflows/build_bromite.yaml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if ! [[ -z "${HTTP_PROXY}" ]]; then
|
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
|
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 -s localhost --dport 8118 -j ACCEPT
|
||||||
sudo iptables -D INPUT -p tcp --dport 8118 -j DROP
|
sudo iptables -D INPUT -p tcp --dport 8118 -j DROP
|
||||||
|
Loading…
Reference in New Issue
Block a user