From 9cf5d63a1585bb12d3d0c47c2d37ad39f620084e Mon Sep 17 00:00:00 2001 From: "342899761@qq.com" Date: Fri, 24 May 2024 13:28:53 +0800 Subject: [PATCH] check ws|wss within sofia_glue_str2transport --- src/mod/endpoints/mod_sofia/sofia_glue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 1452a7cf0f..25dff53930 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -298,6 +298,10 @@ sofia_transport_t sofia_glue_str2transport(const char *str) return SOFIA_TRANSPORT_SCTP; } else if (!strncasecmp(str, "tls", 3)) { return SOFIA_TRANSPORT_TCP_TLS; + } else if (!strncasecmp(str, "wss", 3)) { + return SOFIA_TRANSPORT_WSS; + } else if (!strncasecmp(str, "ws", 2)) { + return SOFIA_TRANSPORT_WS; } return SOFIA_TRANSPORT_UNKNOWN;