Browse Source

ipfs swarm sync only friends stations with existing ping.average.txt

pull/38/head
fred 2 months ago
parent
commit
e38b4c24c1
  1. 4
      zen/ipfs_SWARM_refresh.sh

4
zen/ipfs_SWARM_refresh.sh

@ -115,8 +115,8 @@ do
fi
fi
################################################################
## Refresh bootstrap if XID exists
if [[ "$XID" != "" ]]; then
## Refresh bootstrap if XID exists AND PING not null
if [[ "$XID" != "" && "$(cat ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$whoisg1/ping.average.txt 2>dev/null)" != "" ]]; then
ipfs bootstrap rm "/ipfs/$ipfsnodeid" && ipfs bootstrap add "$peerline" || ipfs bootstrap rm "$peerline"
################################################################

Loading…
Cancel
Save