fix(portforward): different validation when vpn is up or not

This commit is contained in:
Quentin McGaw
2023-10-07 12:43:36 +00:00
parent ee413f59a2
commit ec1f252528
3 changed files with 25 additions and 13 deletions

View File

@@ -85,7 +85,7 @@ func (l *Loop) run(runCtx context.Context, runDone chan<- struct{},
// Stop call takes care of stopping the service
return
case partialUpdate := <-updateTrigger:
updatedSettings, err := l.settings.updateWith(partialUpdate)
updatedSettings, err := l.settings.updateWith(partialUpdate, *l.settings.VPNIsUp)
if err != nil {
updateResult <- err
continue