troubleshooter adding waits

This commit is contained in:
silversword411 2021-09-10 07:31:50 -04:00
parent 83d7a03ba4
commit cf91c6c90e
No known key found for this signature in database
GPG Key ID: 6F4BD176F56B50CA
1 changed files with 12 additions and 8 deletions

View File

@ -229,23 +229,27 @@ fi
echo -ne ${YELLOW} Checking For Proxy | tee -a checklog.log
printf >&2 "\n\n"
echo -ne ${YELLOW} ......this might take a while!!
printf >&2 "\n\n"
# Detect Proxy API
if [ $wanip != $remapiip ]; then
echo -ne ${RED} Proxy detected in front of $rmmdomain | tee -a checklog.log
# Detect Proxy via cert
proxyext=$(openssl s_client -showcerts -servername $remapiip -connect $remapiip:443 2>/dev/null | openssl x509 -inform pem -noout -text)
proxyint=$(openssl s_client -showcerts -servername 127.0.0.1 -connect 127.0.0.1:443 2>/dev/null | openssl x509 -inform pem -noout -text)
if [[ $proxyext == $proxyint ]]; then
echo -ne ${GREEN} No Proxy detected using Certificate | tee -a checklog.log
printf >&2 "\n\n"
else
echo -ne ${GREEN} No Proxy detected in front of $rmmdomain | tee -a checklog.log
echo -ne ${RED} Proxy detected using Certificate | tee -a checklog.log
printf >&2 "\n\n"
fi
# Detect Proxy Frontend
# Detect Proxy via IP
if [ $wanip != $remrmmip ]; then
echo -ne ${RED} Proxy detected in front of $frontenddomain | tee -a checklog.log
echo -ne ${RED} Proxy detected using IP | tee -a checklog.log
printf >&2 "\n\n"
else
echo -ne ${GREEN} No Proxy detected in front of $frontenddomain | tee -a checklog.log
echo -ne ${GREEN} No Proxy detected using IP | tee -a checklog.log
printf >&2 "\n\n"
fi