Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-config
Commits
afce05f2
Commit
afce05f2
authored
Apr 12, 2021
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add custom DNS Resolver configuration
parent
6b35ac32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
config.go
config.go
+1
-0
dns.go
dns.go
+10
-0
No files found.
config.go
View file @
afce05f2
...
@@ -28,6 +28,7 @@ type Config struct {
...
@@ -28,6 +28,7 @@ type Config struct {
AutoNAT
AutoNATConfig
AutoNAT
AutoNATConfig
Pubsub
PubsubConfig
Pubsub
PubsubConfig
Peering
Peering
Peering
Peering
DNS
DNSConfig
Provider
Provider
Provider
Provider
Reprovider
Reprovider
Reprovider
Reprovider
...
...
dns.go
0 → 100644
View file @
afce05f2
package
config
// DNSConfig specifies custom resolvers using DoH
type
DNSConfig
struct
{
// DefaultResolver, if present, is a URL for the default DoH resolver.
// If empty, DNS resolution will use the system resolver.
DefaultResolver
string
`json:",omitempty"`
// CustomResolvers is a map of domains to URLs for custom DoH resolution.
CustomResolvers
map
[
string
]
string
`json:",omitempty"`
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment