Bug fix: Plaintext DNS fix (#326, #329)

This commit is contained in:
Quentin McGaw
2020-12-30 20:36:19 +00:00
parent 11338b6382
commit c6eb5c1785
2 changed files with 77 additions and 58 deletions

View File

@@ -416,7 +416,9 @@ func routeReadyEvents(ctx context.Context, wg *sync.WaitGroup, buildInfo models.
tickerWg.Wait()
return
case <-tunnelReadyCh: // blocks until openvpn is connected
_, _ = unboundLooper.SetStatus(constants.Running)
if unboundLooper.GetSettings().Enabled {
_, _ = unboundLooper.SetStatus(constants.Running)
}
restartTickerCancel() // stop previous restart tickers
tickerWg.Wait()
restartTickerContext, restartTickerCancel = context.WithCancel(ctx)