From 7b2dd067b9417b04dcd5cb7b17384cb993e2a161 Mon Sep 17 00:00:00 2001 From: Eric Chlebek Date: Tue, 13 Feb 2024 09:42:57 -0800 Subject: [PATCH] Copy default dialer again --- client/wsclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/wsclient.go b/client/wsclient.go index 805b56d8..12077c0e 100644 --- a/client/wsclient.go +++ b/client/wsclient.go @@ -29,7 +29,7 @@ type wsClient struct { requestHeader http.Header // Websocket dialer and connection. - dialer *websocket.Dialer + dialer websocket.Dialer conn *websocket.Conn connMutex sync.RWMutex @@ -57,7 +57,7 @@ func (c *wsClient) Start(ctx context.Context, settings types.StartSettings) erro } // Prepare connection settings. - c.dialer = websocket.DefaultDialer + c.dialer = *websocket.DefaultDialer var err error c.url, err = url.Parse(settings.OpAMPServerURL)