diff --git a/src/zeronetavahi b/src/zeronetavahi index c499b4b0..8c60b993 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -56,7 +56,7 @@ while IFS='' read -r line || [[ -n "$line" ]]; do if [ ${state} -eq "2" ]; then if [[ $line == *"address ="* ]]; then address=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}') - echo "udp $address $TRACKER_PORT" >> $BOOTSTRAP_FILE.new + echo "udp $peer $TRACKER_PORT" >> $BOOTSTRAP_FILE.new state=0 fi fi