check ws|wss within sofia_glue_str2transport

This commit is contained in:
342899761@qq.com 2024-05-24 13:28:53 +08:00
parent 218a00e2e9
commit 9cf5d63a15
1 changed files with 4 additions and 0 deletions

View File

@ -298,6 +298,10 @@ sofia_transport_t sofia_glue_str2transport(const char *str)
return SOFIA_TRANSPORT_SCTP; return SOFIA_TRANSPORT_SCTP;
} else if (!strncasecmp(str, "tls", 3)) { } else if (!strncasecmp(str, "tls", 3)) {
return SOFIA_TRANSPORT_TCP_TLS; 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; return SOFIA_TRANSPORT_UNKNOWN;