- Fix CLI operation not setting DNS server - Fix periodic operation not setting DNS server - Set DNS address for resolution once at start for both CLI and periodic operation - Inject resolver to each provider instead of creating it within - Use resolver settings on every call to `.Resolve` method, instead of passing it to constructor - Move out minServers check from resolver
16 lines
258 B
Go
16 lines
258 B
Go
package updater
|
|
|
|
import (
|
|
"github.com/qdm12/gluetun/internal/provider/common"
|
|
)
|
|
|
|
type Updater struct {
|
|
presolver common.ParallelResolver
|
|
}
|
|
|
|
func New(parallelResolver common.ParallelResolver) *Updater {
|
|
return &Updater{
|
|
presolver: parallelResolver,
|
|
}
|
|
}
|