Skip to content

Commit bd16545

Browse files
authored
Some labeling changes (#1288)
Post #1255 Auto-merge
1 parent e3cd8c0 commit bd16545

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

app.js

+13-6
Original file line numberDiff line numberDiff line change
@@ -436,27 +436,34 @@ function pingCert() {
436436
}, function (aErr, aRes, aBody) {
437437
if (aErr) {
438438
if (aErr.cert) {
439+
// Encryption available with Error thrown since internal TLS request on localhost
440+
// isn't usually a valid registered domain however external requests can be blocked by
441+
// browsers as well as false credentials supplied
439442

440443
// Test for time limit of expiration
441444
tripServerOnCertExpire(aErr.cert.valid_to);
442445

443446
} else {
444-
console.warn(colors.red(aErr));
445-
console.warn(
446-
colors.red('Most likely the server is not running on port or port blocked by firewall')
447-
);
447+
console.warn([
448+
colors.red(aErr),
449+
colors.red('Server may not be running on specified port or port blocked by firewall'),
450+
colors.red('Encryption not available')
451+
452+
].join('\n'));
448453
}
449454
return;
450455
}
451456

452457
if (aRes.req.connection.getPeerCertificate) {
453-
console.warn(colors.red('Firewall pass-through')); // NOTE: server blocks this currently
458+
// Encryption available
459+
// NOTE: Server blocks this currently
460+
console.warn(colors.red('Firewall pass-through detected'));
454461

455462
// Test for time limit of expiration
456463
tripServerOnCertExpire(aRes.req.connection.getPeerCertificate().valid_to);
457464

458465
} else {
459-
console.log(colors.cyan('No certificates found'));
466+
console.warn(colors.yellow('Encryption not available'));
460467
}
461468
});
462469
};

0 commit comments

Comments
 (0)