소스 검색

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();
     }