feat(vpn): VPN_UP_COMMAND and VPN_DOWN_COMMAND options

This commit is contained in:
Quentin McGaw
2026-03-08 16:06:16 +00:00
parent c0af198155
commit 57c53bc19e
14 changed files with 152 additions and 68 deletions
+5
View File
@@ -5,6 +5,7 @@ import (
"net/netip"
"os/exec"
"github.com/qdm12/gluetun/internal/command"
"github.com/qdm12/gluetun/internal/configuration/settings"
"github.com/qdm12/gluetun/internal/models"
"github.com/qdm12/gluetun/internal/netlink"
@@ -120,3 +121,7 @@ type Service interface {
Start() (runError <-chan error, err error)
Stop() error
}
type Cmder interface {
RunAndLog(ctx context.Context, command string, logger command.Logger) (err error)
}