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

@@ -74,7 +74,7 @@ func (s *Service) Start(ctx context.Context) (runError <-chan error, err error)
s.portMutex.Unlock()
if s.settings.UpCommand != "" {
err = runCommand(ctx, s.cmder, s.logger, s.settings.UpCommand, ports)
err = runCommand(ctx, s.cmder, s.logger, s.settings.UpCommand, ports, s.settings.Interface)
if err != nil {
err = fmt.Errorf("running up command: %w", err)
s.logger.Error(err.Error())