浏览代码

fix #731: wss SetProxy

ithewei 7 月之前
父节点
当前提交
88880c2635
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      http/client/WebSocketClient.cpp

+ 1 - 1
http/client/WebSocketClient.cpp

@@ -53,7 +53,7 @@ int WebSocketClient::open(const char* _url, const http_headers& headers) {
 
     // wss
     bool wss = strncmp(url.c_str(), "wss", 3) == 0;
-    if (wss) {
+    if (wss && !http_req_->IsProxy()) {
         withTLS();
     }