Skip to content
Snippets Groups Projects
Commit 83fe6c1b authored by cyberta's avatar cyberta
Browse files

Take interrupt signal into account to stop command line client when setting up obfs4 connection

parent 2b5b2bff
Branches
Tags
1 merge request!74Take interrupt signal into account to stop command line client when setting up obfs4 connection
Pipeline #270618 passed with warnings
......@@ -236,7 +236,7 @@ func (c *Client) createObfs4Connection(obfs4Endpoint *Obfs4Config) (*Obfs4Conn,
return nil, err
}
ctx, cancel := context.WithTimeout(context.Background(), dialGiveUpTime)
ctx, cancel := context.WithTimeout(c.ctx, dialGiveUpTime)
defer cancel()
if c.kcpConfig.Enabled {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment