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
+3
View File
@@ -4,6 +4,8 @@ import (
"context"
"net/netip"
"os/exec"
"github.com/qdm12/gluetun/internal/command"
)
type Service interface {
@@ -35,4 +37,5 @@ type Logger interface {
type Cmder interface {
Start(cmd *exec.Cmd) (stdoutLines, stderrLines <-chan string,
waitError <-chan error, startErr error)
RunAndLog(ctx context.Context, commandString string, logger command.Logger) (err error)
}