mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-25 21:37:31 +02:00
Change tests to be more integration oriented
This commit is contained in:
@@ -2,7 +2,6 @@ package restrictednet
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"github.com/qdm12/dns/v2/pkg/provider"
|
||||
)
|
||||
@@ -12,13 +11,6 @@ type Settings struct {
|
||||
IPv6Supported *bool
|
||||
Firewall Firewall
|
||||
UpstreamResolvers []provider.Provider
|
||||
BaseTransport *http.Transport
|
||||
}
|
||||
|
||||
func (s *Settings) setDefaults() {
|
||||
if s.BaseTransport == nil {
|
||||
s.BaseTransport = http.DefaultTransport.(*http.Transport) //nolint:forcetypeassert
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Settings) validate() error {
|
||||
|
||||
Reference in New Issue
Block a user