This commit is contained in:
Ylian Saint-Hilaire 2019-06-21 17:18:59 -07:00
commit 1a5275c2b7
2 changed files with 2 additions and 2 deletions

View File

@ -1696,7 +1696,7 @@ function createMeshCore(agent)
response += '\r\lastMeInfo: ' + lastMeInfo + '.'; response += '\r\lastMeInfo: ' + lastMeInfo + '.';
var oldNodeId = db.Get('OldNodeId'); var oldNodeId = db.Get('OldNodeId');
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; } if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
if (process.platform != 'win32') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; } if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
break; break;
} }
case 'osinfo': { // Return the operating system information case 'osinfo': { // Return the operating system information

View File

@ -1696,7 +1696,7 @@ function createMeshCore(agent)
response += '\r\lastMeInfo: ' + lastMeInfo + '.'; response += '\r\lastMeInfo: ' + lastMeInfo + '.';
var oldNodeId = db.Get('OldNodeId'); var oldNodeId = db.Get('OldNodeId');
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; } if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
if (process.platform != 'win32') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; } if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
break; break;
} }
case 'osinfo': { // Return the operating system information case 'osinfo': { // Return the operating system information