Skip to content

Commit

Permalink
Merge pull request #55 from Strange1ove/master
Browse files Browse the repository at this point in the history
Adjusted curl command
  • Loading branch information
sibprogrammer authored Mar 4, 2024
2 parents 7b26e7f + b657cff commit 728f257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cf-nginx-ip-passthrough/cf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ if [ -f /etc/nginx/conf.d/cf-stop ] ; then
fi

prepareConf(){
curl -sS https://www.cloudflare.com/ips-v4 >$cfTemp && printf "\n" >> $cfTemp
curl -sS https://www.cloudflare.com/ips-v6 >>$cfTemp
curl -sSL https://www.cloudflare.com/ips-v4 >$cfTemp && printf "\n" >> $cfTemp
curl -sSL https://www.cloudflare.com/ips-v6 >>$cfTemp
sed -i -e 's/^/set_real_ip_from /' $cfTemp
sed -i '1ireal_ip_header CF-Connecting-IP' $cfTemp
sed -i '/[^;] *$/s/$/;/' $cfTemp
Expand Down

0 comments on commit 728f257

Please sign in to comment.