Skip to content

Commit 1d4dbda

Browse files
authored
Update main.yml
1 parent 0b700ee commit 1d4dbda

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,7 @@ jobs:
4545
- name: Test tracker availability
4646
shell: bash
4747
run: |
48-
> trackers_best.txt
49-
while IFS= read -r tracker; do
50-
if [[ "$tracker" == http* ]]; then
51-
# Check HTTP/HTTPS tracker
52-
if curl --connect-timeout 10 --max-time 10 -sI "$tracker" | grep -q "HTTP/"; then
53-
echo "$tracker" >> trackers_best.txt
54-
fi
55-
elif [[ "$tracker" == udp* ]]; then
56-
# Check UDP tracker
57-
tracker_url=$(echo "$tracker" | sed 's/udp:\/\///')
58-
if echo -n '' | nc -w 3 -u "${tracker_url%%:*}" "${tracker_url##*:}"; then
59-
echo "$tracker" >> trackers_best.txt
60-
fi
61-
fi
62-
done < trackers_all.txt
48+
bash test_trackers.sh trackers_all.txt
6349
6450
- name: Commit and Push changes
6551
run: |

0 commit comments

Comments
 (0)