Refactored DNS provider data structures
This commit is contained in:
@@ -5,8 +5,8 @@ type (
|
||||
VPNDevice string
|
||||
// DNSProvider is a DNS over TLS server provider name
|
||||
DNSProvider string
|
||||
// DNSForwardAddress is the Unbound formatted forward address
|
||||
DNSForwardAddress string
|
||||
// DNSHost is the DNS host to use for TLS validation
|
||||
DNSHost string
|
||||
// PIAEncryption defines the level of encryption for communication with PIA servers
|
||||
PIAEncryption string
|
||||
// PIARegion contains the list of regions available for PIA
|
||||
|
||||
10
internal/models/dns.go
Normal file
10
internal/models/dns.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
import "net"
|
||||
|
||||
// DNSProviderData contains information for a DNS provider
|
||||
type DNSProviderData struct {
|
||||
IPs []net.IP
|
||||
SupportsTLS bool
|
||||
Host DNSHost
|
||||
}
|
||||
Reference in New Issue
Block a user