android: allow override hostname in cc_config.xml too

This commit is contained in:
Jia Yuan Lo 2021-03-05 11:12:57 +08:00 committed by GitHub
parent 7459780d53
commit 2378fb02e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ int HOST_INFO::get_local_network_info() {
} else {
snprintf(domain_name, sizeof(domain_name), "android_%s", buf);
}
if (!cc_config.device_name.empty()) {
safe_strcpy(domain_name, cc_config.device_name.c_str());
}
return 0;
#endif