mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 10:24:40 +01:00
Json -> JSON
This commit is contained in:
parent
a7b7bdc11e
commit
c1202457bf
2 changed files with 3 additions and 3 deletions
|
@ -215,7 +215,7 @@ type ServerSummary struct {
|
|||
type ConfigFlags struct {
|
||||
List *bool
|
||||
ListAll *bool
|
||||
JsonOutput *bool
|
||||
JSONOutput *bool
|
||||
Check *bool
|
||||
ConfigFile *string
|
||||
Child *bool
|
||||
|
@ -507,7 +507,7 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
|
|||
}
|
||||
}
|
||||
if *flags.List || *flags.ListAll {
|
||||
config.printRegisteredServers(proxy, *flags.JsonOutput)
|
||||
config.printRegisteredServers(proxy, *flags.JSONOutput)
|
||||
os.Exit(0)
|
||||
}
|
||||
if proxy.routes != nil && len(*proxy.routes) > 0 {
|
||||
|
|
|
@ -49,7 +49,7 @@ func main() {
|
|||
flags := ConfigFlags{}
|
||||
flags.List = flag.Bool("list", false, "print the list of available resolvers for the enabled filters")
|
||||
flags.ListAll = flag.Bool("list-all", false, "print the complete list of available resolvers, ignoring filters")
|
||||
flags.JsonOutput = flag.Bool("json", false, "output list as JSON")
|
||||
flags.JSONOutput = flag.Bool("json", false, "output list as JSON")
|
||||
flags.Check = flag.Bool("check", false, "check the configuration file and exit")
|
||||
flags.ConfigFile = flag.String("config", DefaultConfigFileName, "Path to the configuration file")
|
||||
flags.Child = flag.Bool("child", false, "Invokes program as a child process")
|
||||
|
|
Loading…
Add table
Reference in a new issue