Add a configuration variable to set the VRDE address

This commit is contained in:
Rodrigo Osorio 2018-03-07 15:52:02 +01:00 committed by rosorio
parent 788f43e263
commit b71081fc65
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,8 @@ var $language = 'en';
/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
var $vrdeports = '9000-9100';
/* Set the default VRDE address, e.g. 192.168.1.1 */
#var $vrdeaddress = '192.168.1.1';
/*
*

View File

@ -3828,6 +3828,7 @@ class vboxconnector {
$this->session->machine->VRDEServer->enabled = 1;
$this->session->machine->VRDEServer->authTimeout = 5000;
$this->session->machine->VRDEServer->setVRDEProperty('TCP/Ports',($this->settings->vrdeports ? $this->settings->vrdeports : '3390-5000'));
$this->session->machine->VRDEServer->setVRDEProperty('TCP/Address',($this->settings->vrdeaddress ? $this->settings->vrdeaddress : '127.0.0.1');
}
} catch (Exception $e) {
//Ignore