瀏覽代碼

Bootstrap command

Bob Mottram 10 年之前
父節點
當前提交
28531562ae
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/zeronetavahi

+ 2
- 2
src/zeronetavahi 查看文件

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