troubleshooter adding waits
This commit is contained in:
parent
83d7a03ba4
commit
cf91c6c90e
|
@ -229,23 +229,27 @@ fi
|
||||||
|
|
||||||
echo -ne ${YELLOW} Checking For Proxy | tee -a checklog.log
|
echo -ne ${YELLOW} Checking For Proxy | tee -a checklog.log
|
||||||
printf >&2 "\n\n"
|
printf >&2 "\n\n"
|
||||||
|
echo -ne ${YELLOW} ......this might take a while!!
|
||||||
|
printf >&2 "\n\n"
|
||||||
|
|
||||||
# Detect Proxy API
|
# Detect Proxy via cert
|
||||||
if [ $wanip != $remapiip ]; then
|
proxyext=$(openssl s_client -showcerts -servername $remapiip -connect $remapiip:443 2>/dev/null | openssl x509 -inform pem -noout -text)
|
||||||
echo -ne ${RED} Proxy detected in front of $rmmdomain | tee -a checklog.log
|
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"
|
printf >&2 "\n\n"
|
||||||
else
|
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"
|
printf >&2 "\n\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Detect Proxy via IP
|
||||||
# Detect Proxy Frontend
|
|
||||||
if [ $wanip != $remrmmip ]; then
|
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"
|
printf >&2 "\n\n"
|
||||||
else
|
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"
|
printf >&2 "\n\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue