~/.zen/A_allow_ip.txt contains IP of my friends

This commit is contained in:
qo-op 2020-12-06 21:43:10 +01:00
parent bee7812705
commit e6dce5a44b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ do
timestamp=$(date -u +%s%N | cut -b1-13)
echo "$nowdate - $id - $ip"
foundIp=$(cat ~/.zen/allow_ip.txt | grep "$ip" | wc -l)
foundIp=$(cat ~/.zen/A_allow_ip.txt | grep "$ip" | wc -l)
if [ "$foundIp" -eq 0 ] ; then
echo "${ip} of peer ${id} is not in the authorized ip list."