mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-04 07:17:55 +07:00
chore: refine config
This commit is contained in:
@ -84,14 +84,14 @@ type Dns struct {
|
||||
|
||||
type Routing struct {
|
||||
Rules []*config_parser.RoutingRule `mapstructure:"_"`
|
||||
Fallback FunctionOrString `mapstructure:"fallback"`
|
||||
Fallback FunctionOrString `mapstructure:"fallback" default:"direct"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Global Global `mapstructure:"global" required:"" desc:"GlobalDesc"`
|
||||
Subscription []KeyableString `mapstructure:"subscription"`
|
||||
Node []KeyableString `mapstructure:"node"`
|
||||
Group []Group `mapstructure:"group" required:"" desc:"GroupDesc"`
|
||||
Group []Group `mapstructure:"group" desc:"GroupDesc"`
|
||||
Routing Routing `mapstructure:"routing" required:""`
|
||||
Dns Dns `mapstructure:"dns" desc:"DnsDesc"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user