From 7b0b60bd7270b10e79d2193af1385519b5b7ad72 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 29 Aug 2015 16:38:24 +0100 Subject: [PATCH] Fixed tracker port --- src/zeronetavahi | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/zeronetavahi b/src/zeronetavahi index 94a56a72..b05d3bb4 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -28,7 +28,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -TRANSMISSION_PORT= +TRACKER_PORT=51413 BOOTSTRAP_FILE=/opt/zeronet/bootstrap if [ ! -d /opt/zeronet ]; then @@ -47,20 +47,13 @@ fi state=0 address="" -port=0 peer="" while IFS='' read -r line || [[ -n "$line" ]]; do - if [ ${state} -eq "3" ]; then - if [[ $line == *"port ="* ]]; then - port=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}') - echo "udp $address $port" >> $BOOTSTRAP_FILE.new - state=0 - fi - fi if [ ${state} -eq "2" ]; then if [[ $line == *"address ="* ]]; then address=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}') - state=3 + echo "udp $address $TRACKER_PORT" >> $BOOTSTRAP_FILE.new + state=0 fi fi if [ ${state} -eq "1" ]; then