mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
Update 98-cloudflare-real-ip
Print new line instead of a `%` at the end of the last line
This commit is contained in:
parent
01f662d738
commit
399e79f2fa
@ -3,8 +3,8 @@
|
||||
# shellcheck disable=SC2046
|
||||
|
||||
printf "set_real_ip_from %b;\n" $({
|
||||
curl -s "https://www.cloudflare.com/ips-v4" &
|
||||
curl -s "https://www.cloudflare.com/ips-v6" &
|
||||
curl -s -w '\n' "https://www.cloudflare.com/ips-v4" &
|
||||
curl -s -w '\n' "https://www.cloudflare.com/ips-v6" &
|
||||
ip route | grep -v default | awk '{print $1}'
|
||||
}) > /config/nginx/cf_real-ip.conf
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user