From 0ab2d31fe100e734ad0c3bb6e171a27dd48b4cf3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Sep 2015 20:11:20 +0100 Subject: [PATCH] Use address rather than hostname --- src/zeronetavahi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zeronetavahi b/src/zeronetavahi index b71c59d6..57625233 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -226,7 +226,7 @@ done < "$TEMPFILE" echo '
    ' >> $FORUM_FILE.new -# detect fora in the mesh +# detect IPFS file shares in the mesh if [ -f $IPFS_FILE.new ]; then rm -f $IPFS_FILE.new fi @@ -241,7 +241,7 @@ while IFS='' read -r line || [[ -n "$line" ]]; do if [ ${state} -eq "3" ]; then if [[ $line == *"txt ="* ]]; then ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}') - ipfs add /ip4/${peer}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id} + ipfs add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id} echo "
  1. ${peer}
  2. " >> $IPFS_FILE.new state=0 fi