mirror of
https://github.com/jpillora/chisel
synced 2026-06-08 15:07:02 +00:00
Fix missing NetDialContext: c.config.DialContext (#398)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user