Skip to content

Commit 939af8d

Browse files
committed
[Bug]: Fix array ordering
1 parent a60675c commit 939af8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0x10-https_ssl/0-world_wide_web

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function get_a_records(){
1111
echo "The subdomain "$2" is a "$record_type" record and points to "$destination""
1212

1313
else
14-
subdomains=(www lb-01 web-01 web-01)
14+
subdomains=(www lb-01 web-01 web-02)
1515
for sub_d in "${subdomains[@]}"; do
1616
response="$(dig "$sub_d.$1" | grep -i -A1 "answer section" | tail -n 1)"
1717
destination="$(echo ""$response"" | awk '{ print $5 }')"

0 commit comments

Comments
 (0)