GHA workflow - Debug blacklist-ips.conf [skip travis]

This commit is contained in:
Mitchell Krog 2021-07-05 09:25:52 +02:00
parent f7a1b5f9de
commit 399f91f15a
No known key found for this signature in database
GPG key ID: E02E9D10427B6A43

View file

@ -57,7 +57,7 @@ cyan=$(tput setaf 6)
white=$(tput setaf 7)
defaultcolor=$(tput setaf default)
#thisip=$(dig +short myip.opendns.com @resolver1.opendns.com)
thisip=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
thisip=$(ip -o route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p')
# ---------
# FUNCTIONS