Skip to content

Commit

Permalink
add inskip verify true.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginder-Singh committed Aug 26, 2024
1 parent a94d094 commit 234a5b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/httpClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ func (h *httpClient) createWsConnection(remoteAddr string) (wsConn *websocket.Co
Logger.Infof("%s - Connecting to %s", remoteAddr, wsURL)
var httpResponse *http.Response
dialer := *websocket.DefaultDialer
dialer.TLSClientConfig = &tls.Config{
InsecureSkipVerify: true,
}
customNetDialer := h.createDialer()
dialer.NetDial = func(network, addr string) (net.Conn, error) {
return customNetDialer.Dial(network, addr)
Expand Down

0 comments on commit 234a5b4

Please sign in to comment.