Add ipfs peers to the bootstrap list

This commit is contained in:
Bob Mottram 2015-09-30 19:48:28 +01:00
parent d6e4a5159b
commit d0bd8807b8
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
if [ ${state} -eq "3" ]; then
if [[ $line == *"txt ="* ]]; then
ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}')
ipfs add /ip4/${peer}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id}
echo " <li><a href=http://localhost:5001/ipfs/${ipfs_peer_id}>${peer}</a></li>" >> $IPFS_FILE.new
state=0
fi