android: Rename existing android devices which have the domain_name 'localhost'. Parsing of the existing host info structure in the client_state.xml file happens before the detection routines are executed.

This commit is contained in:
Rom Walton 2013-08-26 12:46:19 -04:00
parent 2788770bc9
commit 8d115edf35
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ int HOST_INFO::get_local_network_info() {
strcpy(ip_addr, "");
#ifdef ANDROID
if (strlen(domain_name)) return 0;
if (strlen(domain_name) && (strcmp(domain_name, "localhost") != 0)) return 0;
char buf[256];
make_random_string("", buf);
buf[8] = 0;