소스 검색

Bootstrap command

Bob Mottram 10 년 전
부모
커밋
28531562ae
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/zeronetavahi

+ 2
- 2
src/zeronetavahi 파일 보기

243
     if [ ${state} -eq "3" ]; then
243
     if [ ${state} -eq "3" ]; then
244
         if [[ $line == *"txt ="* ]]; then
244
         if [[ $line == *"txt ="* ]]; then
245
             ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}' | awk -F '"' '{print $2}')
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
             state=0
248
             state=0
249
         fi
249
         fi
250
     fi
250
     fi