1
mirror of https://github.com/carlospolop/PEASS-ng synced 2024-11-27 14:13:38 +01:00

Update 3_cloud.sh for check_cvm

Added connection timeout Settings and fixed wget syntax errors for check_cvm
This commit is contained in:
shadowabi 2024-06-17 11:23:11 +08:00 committed by GitHub
parent 74c1391d66
commit efa0e98547
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,9 +168,9 @@ echo ""
if [ "$is_tencent_cvm" = "Yes" ]; then
tencent_req=""
if [ "$(command -v curl)" ]; then
tencent_req='curl -sfkG'
tencent_req='curl --connect-timeout 2 -sfkG'
elif [ "$(command -v wget)" ]; then
tencent_req='wget -q -O '
tencent_req='wget -q --timeout 2 --tries 1 -O -'
else
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
fi