Use peer hostname

This commit is contained in:
Bob Mottram 2015-08-30 12:51:50 +01:00
parent 7204b396d7
commit 88c39eecb9
1 changed files with 1 additions and 1 deletions

View File

@ -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