Don't cancel proxy ctx on conn close (#1986)

This commit is contained in:
Viktor Liu
2024-05-15 09:10:57 +02:00
committed by GitHub
parent 650bca7ca8
commit 1444fbe104
2 changed files with 1 additions and 2 deletions

View File

@ -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 {