Remove dead code
This commit is contained in:
@@ -941,19 +941,6 @@ function logSecurityAlert(message) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints a warning message
|
||||
* @param {string} message The warning message to print
|
||||
* @returns {void}
|
||||
*/
|
||||
function logSecurityWarning(message) {
|
||||
if (basicAuthMode || enableWhitelist) return; // safe!
|
||||
console.error(color.yellow(message));
|
||||
if (getConfigValue('securityOverride', false)) {
|
||||
console.warn(color.red('Security has been overridden. If it\'s not a trusted network, change the settings.'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles the case where the server failed to start on one or both protocols.
|
||||
* @param {boolean} v6Failed If the server failed to start on IPv6
|
||||
|
||||
Reference in New Issue
Block a user