Change tests to be more integration oriented

This commit is contained in:
Quentin McGaw
2026-06-09 14:04:32 +00:00
parent dd07205b85
commit b5366b9e44
7 changed files with 128 additions and 566 deletions
-8
View File
@@ -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 {