|
|
|
@ -541,8 +541,7 @@ class Monitor extends BeanModel {
|
|
|
|
|
|
|
|
|
|
// fallback for if kelog event is not emitted, but we may still have tlsInfo,
|
|
|
|
|
// e.g. if the connection is made through a proxy
|
|
|
|
|
if (this.getUrl()?.protocol === "https:") {
|
|
|
|
|
if (tlsInfo.valid === undefined) {
|
|
|
|
|
if (this.getUrl()?.protocol === "https:" && tlsInfo.valid === undefined) {
|
|
|
|
|
const tlsSocket = res.request.res.socket;
|
|
|
|
|
|
|
|
|
|
if (tlsSocket) {
|
|
|
|
@ -556,7 +555,6 @@ class Monitor extends BeanModel {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (process.env.UPTIME_KUMA_LOG_RESPONSE_BODY_MONITOR_ID === this.id) {
|
|
|
|
|
log.info("monitor", res.data);
|
|
|
|
|