Prechádzať zdrojové kódy

Merge branch 'main' of github.com:alibaba-damo-academy/FunASR
add

游雁 2 rokov pred
rodič
commit
862c521465

+ 1 - 1
runtime/websocket/bin/funasr-wss-server-2pass.cpp

@@ -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;
     }
 

+ 1 - 1
runtime/websocket/bin/funasr-wss-server.cpp

@@ -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;
     }