Skip to content

Commit

Permalink
fix external ips
Browse files Browse the repository at this point in the history
  • Loading branch information
celogeek authored Aug 9, 2020
1 parent c29df28 commit b0c17ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/etc/cron.daily/realip
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -e

T=`mktemp`

IPV4=$(curl -s -4 ip.sb)
IPV6=$(curl -s -6 ip.sb)
IPV4=$(curl -s https://api.ipify.org)
IPV6=$(curl -s https://api6.ipify.org)

[ "$IPV4" = "" ] || IPV4="set_real_ip_from $IPV4;"
[ "$IPV6" = "" ] || IPV6="set_real_ip_from $IPV6;"
Expand Down

0 comments on commit b0c17ed

Please sign in to comment.