Browse Source

Add ipfs peers to the bootstrap list

Bob Mottram 9 years ago
parent
commit
d0bd8807b8
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/zeronetavahi

+ 1
- 0
src/zeronetavahi View File

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