mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-13 16:03:20 -05:00
Merge branch 'master' of https://github.com/Ylianst/MeshCentral
This commit is contained in:
commit
889c2536fd
@ -1949,7 +1949,10 @@ function onTunnelData(data) {
|
||||
var login = process.platform == 'linux' ? '/bin/login' : '/usr/bin/login';
|
||||
|
||||
var env = { HISTCONTROL: 'ignoreboth' };
|
||||
if (this.httprequest.xoptions) {
|
||||
if (process.env['LANG']) { env['LANG'] = process.env['LANG']; }
|
||||
if (process.env['PATH']) { env['PATH'] = process.env['PATH']; }
|
||||
if (this.httprequest.xoptions)
|
||||
{
|
||||
if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }
|
||||
if (this.httprequest.xoptions.cols) { env.COLUMNS = ('' + this.httprequest.xoptions.cols); }
|
||||
}
|
||||
|
@ -979,7 +979,10 @@ require('MeshAgent').AddCommandHandler(function (data) {
|
||||
}
|
||||
else {
|
||||
var env = { HISTCONTROL: 'ignoreboth' };
|
||||
if (this.httprequest.xoptions) {
|
||||
if (process.env['LANG']) { env['LANG'] = process.env['LANG']; }
|
||||
if (process.env['PATH']) { env['PATH'] = process.env['PATH']; }
|
||||
if (this.httprequest.xoptions)
|
||||
{
|
||||
if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }
|
||||
if (this.httprequest.xoptions.cols) { env.COLUMNS = ('' + this.httprequest.xoptions.cols); }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user