Add ipfs peers to the bootstrap list
This commit is contained in:
parent
d6e4a5159b
commit
d0bd8807b8
|
@ -241,6 +241,7 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
if [ ${state} -eq "3" ]; then
|
if [ ${state} -eq "3" ]; then
|
||||||
if [[ $line == *"txt ="* ]]; then
|
if [[ $line == *"txt ="* ]]; then
|
||||||
ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}')
|
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
|
echo " <li><a href=http://localhost:5001/ipfs/${ipfs_peer_id}>${peer}</a></li>" >> $IPFS_FILE.new
|
||||||
state=0
|
state=0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue