Browse Source

Use peer hostname

Bob Mottram 10 years ago
parent
commit
88c39eecb9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/zeronetavahi

+ 1
- 1
src/zeronetavahi View File

56
     if [ ${state} -eq "2" ]; then
56
     if [ ${state} -eq "2" ]; then
57
         if [[ $line == *"address ="* ]]; then
57
         if [[ $line == *"address ="* ]]; then
58
             address=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}')
58
             address=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}')
59
-            echo "udp $address $TRACKER_PORT" >> $BOOTSTRAP_FILE.new
59
+            echo "udp $peer $TRACKER_PORT" >> $BOOTSTRAP_FILE.new
60
             state=0
60
             state=0
61
         fi
61
         fi
62
     fi
62
     fi