浏览代码

Add ipfs peers to the bootstrap list

Bob Mottram 9 年前
父节点
当前提交
d0bd8807b8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/zeronetavahi

+ 1
- 0
src/zeronetavahi 查看文件

@@ -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