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 " - ${peer}
" >> $IPFS_FILE.new
state=0
fi