~/.zen/A_allow_ip.txt contains IP of my friends
This commit is contained in:
parent
bee7812705
commit
e6dce5a44b
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue