fix(portforward): different validation when vpn is up or not
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user