Skip to content

Commit 692548e

Browse files
committed
add more ports
1 parent c6e810d commit 692548e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

testing/open-ports.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
declare -a ports=("4505" "4506")
3+
declare -a ports=("20" "21" "22" "23" "25" "42" "43" "49" "53" "67" "68" "69" "70" "80" "88" "123" "135" "137" "139" "143" "161" "162" "389" "443" "445" "464" "513" "587" "636" "1080" "1194" "993" "995" "1025" "1194" "1725" "1812" "1813" "3124" "3128" "5060" "5900" "6665" "6666" "6667" "6668" "6669" "6679" "6697" "8080")
44
_SETUP_PORTS=False
55
_TEST_PORTS=False
66

@@ -33,7 +33,6 @@ function result {
3333
;;
3434
1)
3535
echo "The access to $PORT failed"
36-
exit
3736
;;
3837
*)
3938
echo "Unknown exit error for the $PORT command. Exiting script."
@@ -51,8 +50,8 @@ function test_ports {
5150
}
5251

5352
function start_ports {
54-
for port in ${ports}; do
55-
test_port=$(nc -lk ${port} &)
53+
for port in "${ports[@]}"; do
54+
nc -lk ${port} &
5655
done
5756
}
5857

0 commit comments

Comments
 (0)