mirror of
https://github.com/byReqz/status.git
synced 2024-11-25 00:44:56 +00:00
add support for multiple servers/reverse proxy setups
This commit is contained in:
parent
95306197ac
commit
7c7dbad262
@ -25,7 +25,7 @@ function get_code {
|
|||||||
elif [[ "$http_code" < 599 && "$http_code" > 499 ]];then
|
elif [[ "$http_code" < 599 && "$http_code" > 499 ]];then
|
||||||
http_code="[\e[31m"$http_code"\e[0m"
|
http_code="[\e[31m"$http_code"\e[0m"
|
||||||
fi
|
fi
|
||||||
http_server=" | \e[1;34m$(echo "$http_raw" | grep -i "server" | sort -u | cut -d " " -f 2)\e[0m]"
|
http_server=" | \e[1;34m$(echo "$http_raw" | grep -i "server" | sort -u | cut -d " " -f 2 | tr -s '\n' ' '| xargs | sed 's/ / + /g')\e[0m]"
|
||||||
http_results=""$http_results"
|
http_results=""$http_results"
|
||||||
$(printf "%-63s%s\n" ["\e[1;35m"$h"\e[0m"] "$http_code""$http_server")"
|
$(printf "%-63s%s\n" ["\e[1;35m"$h"\e[0m"] "$http_code""$http_server")"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user