Browse Source

add ip of client to host login

pull/123/head
butlerx 8 years ago
committed by cbutler
parent
commit
5d96f40490
No known key found for this signature in database GPG Key ID: 9EB3D625BD14DDEC
  1. 51
      public/.eslintrc
  2. 2
      wetty.js

51
public/.eslintrc

@ -1,51 +0,0 @@
{
"extends": "standard",
"env": {
"es6": true,
"jest": true,
"browser": true
},
"globals": {
"GENTLY": true,
"chrome": true,
"hterm" : true,
"lib" : true,
"io" : true
},
"rules": {
"no-multi-spaces": 0,
"comma-dangle": [
"error",
"always-multiline"
],
"key-spacing": [
"error",
{
"multiLine": {
"beforeColon": false,
"afterColon": true
},
"align": {
"beforeColon": false,
"afterColon": true,
"on": "colon",
"mode": "strict"
}
}
],
"semi": [
"error",
"always"
],
"no-var": [
"error"
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
]
}
}

2
wetty.js

@ -48,7 +48,7 @@ export default (port, globalsshuser, sshhost, sshport, sshauth, sslopts) => {
const ssh = match ? `${match[0].split('/ssh/').pop()}@${sshhost}` : sshAddress;
const args = process.getuid() === 0 && sshhost === 'localhost'
? ['login']
? ['login', '-h', socket.client.conn.remoteAddress.split(':')[3]]
: [ssh, '-p', sshport, '-o', `PreferredAuthentications=${sshauth}`];
const term = pty.spawn('/usr/bin/env', args, {
name: 'xterm-256color',

Loading…
Cancel
Save