feat(port-forwarding): add {{VPN_INTERFACE}} template variable

This commit is contained in:
Quentin McGaw
2025-11-22 23:32:26 +00:00
parent 0fad44fb68
commit a35c994bc8
4 changed files with 8 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ func (s *Service) cleanup() (err error) {
const downTimeout = 60 * time.Second
ctx, cancel := context.WithTimeout(context.Background(), downTimeout)
defer cancel()
err = runCommand(ctx, s.cmder, s.logger, s.settings.DownCommand, s.ports)
err = runCommand(ctx, s.cmder, s.logger, s.settings.DownCommand, s.ports, s.settings.Interface)
if err != nil {
err = fmt.Errorf("running down command: %w", err)
s.logger.Error(err.Error())