diff --git a/lib/setopt.c b/lib/setopt.c index afc44013c6..bfc7176437 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -185,6 +185,10 @@ static CURLcode protocol2num(char *str, curl_off_t *val) { "smtps", CURLPROTO_SMTPS }, { "telnet", CURLPROTO_TELNET }, { "tftp", CURLPROTO_TFTP }, +#ifdef USE_WEBSOCKETS + { "ws", CURLPROTO_WS }, + { "wss", CURLPROTO_WSS }, +#endif { NULL, 0 } };