Kaynağa Gözat

Use address rather than hostname

Bob Mottram 9 yıl önce
ebeveyn
işleme
0ab2d31fe1
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      src/zeronetavahi

+ 2
- 2
src/zeronetavahi Dosyayı Görüntüle

226
 echo '<ol>' >> $FORUM_FILE.new
226
 echo '<ol>' >> $FORUM_FILE.new
227
 
227
 
228
 
228
 
229
-# detect fora in the mesh
229
+# detect IPFS file shares in the mesh
230
 if [ -f $IPFS_FILE.new ]; then
230
 if [ -f $IPFS_FILE.new ]; then
231
     rm -f $IPFS_FILE.new
231
     rm -f $IPFS_FILE.new
232
 fi
232
 fi
241
     if [ ${state} -eq "3" ]; then
241
     if [ ${state} -eq "3" ]; then
242
         if [[ $line == *"txt ="* ]]; then
242
         if [[ $line == *"txt ="* ]]; then
243
             ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}')
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
+            ipfs add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id}
245
             echo "  <li><a href=http://localhost:5001/ipfs/${ipfs_peer_id}>${peer}</a></li>" >> $IPFS_FILE.new
245
             echo "  <li><a href=http://localhost:5001/ipfs/${ipfs_peer_id}>${peer}</a></li>" >> $IPFS_FILE.new
246
             state=0
246
             state=0
247
         fi
247
         fi