Feature: add udp-fallback-match option

This commit is contained in:
Dreamacro
2023-01-01 20:12:17 +08:00
parent 2301b909d2
commit a5d54884e0
3 changed files with 16 additions and 4 deletions

View File

@ -86,7 +86,9 @@ type Profile struct {
}
// Experimental config
type Experimental struct{}
type Experimental struct {
UDPFallbackMatch bool `yaml:"udp-fallback-match"`
}
// Config is clash config manager
type Config struct {
@ -250,6 +252,9 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) {
Profile: Profile{
StoreSelected: true,
},
Experimental: Experimental{
UDPFallbackMatch: true,
},
}
if err := yaml.Unmarshal(buf, rawCfg); err != nil {