remotesupport: remove superfluous sshd_config check
This commit is contained in:
@@ -58,10 +58,6 @@ async function canEnableRemoteSupport(req, res, next) {
|
||||
|
||||
if (!supportConfig.remoteSupport) return next(new HttpError(405, 'feature disabled by admin'));
|
||||
|
||||
const SSHD_CONFIG_FILE = '/etc/ssh/sshd_config';
|
||||
const sshdConfig = safe.fs.readFileSync(SSHD_CONFIG_FILE, 'utf8');
|
||||
if (!sshdConfig) return next(new HttpError(412, `Failed to read file ${SSHD_CONFIG_FILE}`));
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user