From 8d115edf35ee3495aedd8c45aa6ccf6c7fcfa789 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 26 Aug 2013 12:46:19 -0400 Subject: [PATCH] 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. --- client/hostinfo_network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/hostinfo_network.cpp b/client/hostinfo_network.cpp index e5f13f6d13..5d2b70f04b 100644 --- a/client/hostinfo_network.cpp +++ b/client/hostinfo_network.cpp @@ -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;