changeset 543:19893f0d86bd draft

peer2anonet: changed the range of acceptable ip's or domains for connections.
author d3v1150m471c <d3v11@d3v1150m471c.ano>
date Sun, 10 Jul 2011 17:30:19 -0500
parents 32741b02849b
children 44cb8de11e7d
files contrib/peer2anonet/peer2anonet
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/peer2anonet/peer2anonet	Sun Jul 10 17:06:31 2011 -0500
+++ b/contrib/peer2anonet/peer2anonet	Sun Jul 10 17:30:19 2011 -0500
@@ -43,14 +43,8 @@
 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]}
 "