update ssl

This commit is contained in:
雾聪 2023-11-16 14:54:03 +08:00
parent ffd085581a
commit 29ce4c1526
2 changed files with 2 additions and 2 deletions

View File

@ -439,7 +439,7 @@ int main(int argc, char* argv[]) {
funasr::ExtractHws(hotword_path, hws_map_);
bool is_ssl = false;
if (!s_certfile.empty()) {
if (!s_certfile.empty() && access(s_certfile.c_str(), F_OK) == 0) {
is_ssl = true;
}

View File

@ -419,7 +419,7 @@ int main(int argc, char* argv[]) {
funasr::ExtractHws(hotword_path, hws_map_);
bool is_ssl = false;
if (!s_certfile.empty()) {
if (!s_certfile.empty() && access(s_certfile.c_str(), F_OK) == 0) {
is_ssl = true;
}