Skip to content

Commit

Permalink
Don't cancel proxy ctx on conn close (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal authored May 15, 2024
1 parent 650bca7 commit 1444fbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion client/internal/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (e *Engine) Start() error {
}
e.ctx, e.cancel = context.WithCancel(e.clientCtx)

e.wgProxyFactory = wgproxy.NewFactory(e.clientCtx, e.config.WgPort)
e.wgProxyFactory = wgproxy.NewFactory(e.ctx, e.config.WgPort)

wgIface, err := e.newWgIface()
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion client/internal/wgproxy/proxy_ebpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (p *WGEBPFProxy) AddTurnConn(turnConn net.Conn) (net.Addr, error) {

// CloseConn doing nothing because this type of proxy implementation does not store the connection
func (p *WGEBPFProxy) CloseConn() error {
p.cancel()
return nil
}

Expand Down

0 comments on commit 1444fbe

Please sign in to comment.