From 2378fb02e8bbbdc0e480c486ce02683a99deab77 Mon Sep 17 00:00:00 2001 From: Jia Yuan Lo Date: Fri, 5 Mar 2021 11:12:57 +0800 Subject: [PATCH] android: allow override hostname in cc_config.xml too --- client/hostinfo_network.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/hostinfo_network.cpp b/client/hostinfo_network.cpp index 277586ec1e..df746f90c8 100644 --- a/client/hostinfo_network.cpp +++ b/client/hostinfo_network.cpp @@ -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