mirror of
https://github.com/carlospolop/PEASS-ng
synced 2024-11-24 01:26:22 +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:
parent
74c1391d66
commit
efa0e98547
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user