dns_conf: fix https server httphost issue.

This commit is contained in:
Nick Peng
2023-11-12 09:38:44 +08:00
parent 8c06923438
commit 79a49c6bd6

View File

@@ -722,6 +722,10 @@ static int _config_server(int argc, char *argv[], dns_server_type_t type, int de
if (server->path[0] == 0) {
safe_strncpy(server->path, "/", sizeof(server->path));
}
if (server->httphost[0] == '\0') {
safe_strncpy(server->httphost, server->server, DNS_MAX_CNAME_LEN);
}
}
dns_conf_server_num++;