mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-13 20:10:04 +02:00
feat(vpn): VPN_UP_COMMAND and VPN_DOWN_COMMAND options
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user