@@ -191,6 +191,9 @@ func NewWebSocketOrRestReverseProxy(u *url.URL, opts *Options, auth hmacauth.Hma
191 wsScheme := "ws" + strings.TrimPrefix(u.Scheme, "http")
191 wsScheme := "ws" + strings.TrimPrefix(u.Scheme, "http")
192 wsURL := &url.URL{Scheme: wsScheme, Host: u.Host}
192 wsURL := &url.URL{Scheme: wsScheme, Host: u.Host}
193 wsProxy = wsutil.NewSingleHostReverseProxy(wsURL)
193 wsProxy = wsutil.NewSingleHostReverseProxy(wsURL)
194+ if opts.SSLUpstreamInsecureSkipVerify {
195+ wsProxy.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
195 return &UpstreamProxy{
198 return &UpstreamProxy{
196 upstream: u.Host,
199 upstream: u.Host,