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