From e78ccc3497bc72500438c5d208d93e72ee9d7cfa Mon Sep 17 00:00:00 2001 From: Guillaume SMAHA Date: Fri, 27 Jan 2023 22:00:02 +0100 Subject: [PATCH] Fix missing NetDialContext: c.config.DialContext (#398) --- client/client_connect.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client_connect.go b/client/client_connect.go index 8841d0c..884c764 100644 --- a/client/client_connect.go +++ b/client/client_connect.go @@ -64,7 +64,7 @@ func (c *Client) connectionLoop(ctx context.Context) error { return nil } -//connectionOnce connects to the chisel server and blocks +// connectionOnce connects to the chisel server and blocks func (c *Client) connectionOnce(ctx context.Context) (connected bool, err error) { //already closed? select { @@ -82,6 +82,7 @@ func (c *Client) connectionOnce(ctx context.Context) (connected bool, err error) TLSClientConfig: c.tlsConfig, ReadBufferSize: settings.EnvInt("WS_BUFF_SIZE", 0), WriteBufferSize: settings.EnvInt("WS_BUFF_SIZE", 0), + NetDialContext: c.config.DialContext, } //optional proxy if p := c.proxyURL; p != nil {