From c30661a25648394a27306b39adeb3682a9ba1b0d Mon Sep 17 00:00:00 2001 From: d3v1150m471c Date: Sun, 10 Jul 2011 17:30:19 -0500 Subject: peer2anonet: changed the range of acceptable ip's or domains for connections. --- contrib/peer2anonet/peer2anonet | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'contrib') diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index c03623a..dc760d2 100644 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -43,14 +43,8 @@ TEST[0]=$PEERNAME; TEST[1]=$YOURNET; TEST[2]=$YOURROUTE; TEST[3]=$YOURIP TEST[4]=$REMOTEIP; TEST[5]=$PEERIP; TEST[6]=$YOURPORT; TEST[7]=$PEERPORT TEST[8]=$YOURASN; TEST[9]=$PEERASN; TEST[10]=$PUBKEY -if [[ $(echo ${TEST[0]} | tr -d 'a-zA-Z0-9._-' | wc -c) -gt 1 ]]; then - echo "peer2anonet: fatal error: unacceptable data: ${TEST[0]} -" - exit 1 -fi - -for((X=1;X<=5;X++)); do -if [[ $(echo ${TEST[$X]} | tr -d 'a-zA-Z0-9.' | wc -c) -gt 1 ]]; then +for((X=0;X<=5;X++)); do +if [[ $(echo ${TEST[$X]} | tr -d 'a-zA-Z0-9._-' | wc -c) -gt 1 ]]; then echo ${TEST[$X]} | tr -d 'a-zA-Z0-9' | wc -c echo "peer2anonet: fatal error: unacceptable data: ${TEST[$X]} " -- cgit v1.2.3