VBOX: Use the 'Name' field instead of the internal virtualbox name for the default network interface.

This commit is contained in:
Rom Walton 2014-08-22 15:22:39 -04:00
parent fbe578ad6e
commit 837948ff24
1 changed files with 2 additions and 2 deletions

View File

@ -2112,11 +2112,11 @@ int VBOX_VM::get_default_network_interface(string& iface) {
// Status: Up
// VBoxNetworkName: HostInterfaceNetworking-Intel(R) Ethernet Connection I217-V
if_start = output.find("VBoxNetworkName:");
if_start = output.find("Name:");
if (if_start == string::npos) {
return ERR_NOT_FOUND;
}
if_start += strlen("VBoxNetworkName:");
if_start += strlen("Name:");
if_end = output.find("\n", if_start);
iface = output.substr(if_start, if_end - if_start);
strip_whitespace(iface);