Skip to content

Commit e78ccc3

Browse files
Fix missing NetDialContext: c.config.DialContext (#398)
1 parent e546a6d commit e78ccc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/client_connect.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (c *Client) connectionLoop(ctx context.Context) error {
6464
return nil
6565
}
6666

67-
//connectionOnce connects to the chisel server and blocks
67+
// connectionOnce connects to the chisel server and blocks
6868
func (c *Client) connectionOnce(ctx context.Context) (connected bool, err error) {
6969
//already closed?
7070
select {
@@ -82,6 +82,7 @@ func (c *Client) connectionOnce(ctx context.Context) (connected bool, err error)
8282
TLSClientConfig: c.tlsConfig,
8383
ReadBufferSize: settings.EnvInt("WS_BUFF_SIZE", 0),
8484
WriteBufferSize: settings.EnvInt("WS_BUFF_SIZE", 0),
85+
NetDialContext: c.config.DialContext,
8586
}
8687
//optional proxy
8788
if p := c.proxyURL; p != nil {

0 commit comments

Comments
 (0)