Allow configuring IP address the DNS server binds to (#552)
Closes #550.
This commit is contained in:
@@ -41,7 +41,8 @@ type configuration struct {
|
||||
|
||||
// field ordering is important -- yaml fields will mirror ordering from here
|
||||
type dnsConfig struct {
|
||||
Port int `yaml:"port"`
|
||||
BindHost string `yaml:"bind_host"`
|
||||
Port int `yaml:"port"`
|
||||
|
||||
dnsforward.FilteringConfig `yaml:",inline"`
|
||||
|
||||
@@ -56,7 +57,8 @@ var config = configuration{
|
||||
BindPort: 3000,
|
||||
BindHost: "127.0.0.1",
|
||||
DNS: dnsConfig{
|
||||
Port: 53,
|
||||
BindHost: "0.0.0.0",
|
||||
Port: 53,
|
||||
FilteringConfig: dnsforward.FilteringConfig{
|
||||
ProtectionEnabled: true, // whether or not use any of dnsfilter features
|
||||
FilteringEnabled: true, // whether or not use filter lists
|
||||
|
||||
Reference in New Issue
Block a user