From 399e79f2fa42cb758105c288fdb7a64dc1013421 Mon Sep 17 00:00:00 2001 From: takikoo Date: Wed, 11 Aug 2021 15:52:22 +0200 Subject: [PATCH] Update 98-cloudflare-real-ip Print new line instead of a `%` at the end of the last line --- root/etc/cont-init.d/98-cloudflare-real-ip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/cont-init.d/98-cloudflare-real-ip b/root/etc/cont-init.d/98-cloudflare-real-ip index fc85b8b..156dc08 100644 --- a/root/etc/cont-init.d/98-cloudflare-real-ip +++ b/root/etc/cont-init.d/98-cloudflare-real-ip @@ -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