mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-15 22:37:17 +02:00
Don't cancel proxy ctx on conn close (#1986)
This commit is contained in:
parent
650bca7ca8
commit
1444fbe104
@ -259,7 +259,7 @@ func (e *Engine) Start() error {
|
|||||||
}
|
}
|
||||||
e.ctx, e.cancel = context.WithCancel(e.clientCtx)
|
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()
|
wgIface, err := e.newWgIface()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -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
|
// CloseConn doing nothing because this type of proxy implementation does not store the connection
|
||||||
func (p *WGEBPFProxy) CloseConn() error {
|
func (p *WGEBPFProxy) CloseConn() error {
|
||||||
p.cancel()
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user