Skip to content

Commit

Permalink
bind: fix passing default value for --dns-server flag
Browse files Browse the repository at this point in the history
That allows to pass default dns servers to the bind.
  • Loading branch information
Choraden committed Oct 3, 2024
1 parent 6fca0ec commit 7230452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func ConfigFile(fs *pflag.FlagSet, configFile *string) {
}

func DNSConfig(fs *pflag.FlagSet, cfg *forwarder.DNSConfig) {
fs.VarP(anyflag.NewSliceValue[netip.AddrPort](nil, &cfg.Servers, forwarder.ParseDNSAddress),
fs.VarP(anyflag.NewSliceValue[netip.AddrPort](cfg.Servers, &cfg.Servers, forwarder.ParseDNSAddress),
"dns-server", "n", "<ip>[:<port>]"+
"DNS server(s) to use instead of system default. "+
"There are two execution policies, when more then one server is specified. "+
Expand Down

0 comments on commit 7230452

Please sign in to comment.