fix(portforward): rework run loop and fix deadlocks (#1874)

This commit is contained in:
Quentin McGaw
2023-09-23 12:57:12 +02:00
committed by GitHub
parent c435bbb32c
commit 71201411f4
30 changed files with 453 additions and 476 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/qdm12/gluetun/internal/configuration/settings"
"github.com/qdm12/gluetun/internal/models"
"github.com/qdm12/gluetun/internal/netlink"
"github.com/qdm12/gluetun/internal/portforward"
portforward "github.com/qdm12/gluetun/internal/portforward/service"
"github.com/qdm12/gluetun/internal/provider"
)
@@ -22,8 +22,7 @@ type Routing interface {
}
type PortForward interface {
Start(ctx context.Context, data portforward.StartData) (outcome string, err error)
Stop(ctx context.Context) (outcome string, err error)
UpdateWith(settings portforward.Settings) (err error)
}
type OpenVPN interface {