Fix missing NetDialContext: c.config.DialContext (#398)

This commit is contained in:
Guillaume SMAHA
2023-01-27 22:00:02 +01:00
committed by GitHub
parent e546a6d6cb
commit e78ccc3497
+2 -1
View File
@@ -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 {