summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authord3v1150m471c <d3v11@d3v1150m471c.ano>2011-07-10 17:30:19 -0500
committerd3v1150m471c <d3v11@d3v1150m471c.ano>2011-07-10 17:30:19 -0500
commitc30661a25648394a27306b39adeb3682a9ba1b0d (patch)
tree61a477ccb6a76d11631f1e9ea55b4132d40cd859 /contrib
parentc20d141a2f702d7a3dcb9a53b5f3148635612d54 (diff)
downloadresdb-c30661a25648394a27306b39adeb3682a9ba1b0d.tar.gz
resdb-c30661a25648394a27306b39adeb3682a9ba1b0d.zip
peer2anonet:
changed the range of acceptable ip's or domains for connections.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/peer2anonet/peer2anonet10
1 files changed, 2 insertions, 8 deletions
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]}
"