From 94f3ba4ee6a1c4cbf4a8d0130b3755c5990fcc78 Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Fri, 3 Mar 2023 10:59:31 +0800 Subject: [PATCH] chore: refine config --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index db98490..3938e33 100644 --- a/config/config.go +++ b/config/config.go @@ -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"` }