Maint: dns package state rework
- Interface composition with loopstate interfaces - Use loopstate.Manager - Create dns/state package for handling settings
This commit is contained in:
@@ -90,7 +90,7 @@ func (l *Loop) Run(ctx context.Context, done chan<- struct{}) {
|
||||
closeStreams()
|
||||
|
||||
unboundCancel()
|
||||
l.state.SetStatus(constants.Crashed)
|
||||
l.statusManager.SetStatus(constants.Crashed)
|
||||
const fallback = true
|
||||
l.useUnencryptedDNS(fallback)
|
||||
l.logAndWait(ctx, err)
|
||||
|
||||
Reference in New Issue
Block a user