Browse Source

enabled bypasshelmet

pull/313/head
Jordan M. Stokes 4 years ago
parent
commit
8bbf598738
  1. 11
      src/server/wetty/index.ts

11
src/server/wetty/index.ts

@ -16,10 +16,10 @@ export default function startWeTTy(
ssh: SSH = { user: '', host: 'localhost', auth: 'password', port: 22 }, ssh: SSH = { user: '', host: 'localhost', auth: 'password', port: 22 },
serverConf: Server = { serverConf: Server = {
base: '/wetty/', base: '/wetty/',
port: 3000, port: 3001,
host: '0.0.0.0', host: '0.0.0.0',
title: 'WeTTy', title: 'WeTTy',
bypasshelmet: false, bypasshelmet: true,
}, },
command = '', command = '',
forcessh = false, forcessh = false,
@ -45,7 +45,12 @@ export default function startWeTTy(
* @name connection * @name connection
*/ */
logger.info('Connection accepted.'); logger.info('Connection accepted.');
const { args, user: sshUser } = getCommand(socket, ssh, command, forcessh); const { args, user: sshUser } = getCommand(
socket,
ssh,
command,
forcessh
);
logger.debug('Command Generated', { logger.debug('Command Generated', {
user: sshUser, user: sshUser,
cmd: args.join(' '), cmd: args.join(' '),

Loading…
Cancel
Save