From 7c924d193d6ca5852abc0850c4d61a79519f2765 Mon Sep 17 00:00:00 2001 From: Gray Liang Date: Wed, 28 Feb 2024 00:39:14 +0800 Subject: [PATCH] config: mark auto_config_firewall as deprecated, properly --- config/config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index c0cdfdec8..513560a05 100644 --- a/config/config.go +++ b/config/config.go @@ -35,10 +35,11 @@ type Global struct { DialMode string `mapstructure:"dial_mode" default:"domain"` DisableWaitingNetwork bool `mapstructure:"disable_waiting_network" default:"false"` AutoConfigKernelParameter bool `mapstructure:"auto_config_kernel_parameter" default:"false"` - AutoConfigFirewallRule bool `mapstructure:"auto_config_firewall_rule" default:"false"` // DEPRECATED: not used as of https://github.com/daeuniverse/dae/pull/458 - SniffingTimeout time.Duration `mapstructure:"sniffing_timeout" default:"100ms"` - TlsImplementation string `mapstructure:"tls_implementation" default:"tls"` - UtlsImitate string `mapstructure:"utls_imitate" default:"chrome_auto"` + // DEPRECATED: not used as of https://github.com/daeuniverse/dae/pull/458 + AutoConfigFirewallRule bool `mapstructure:"auto_config_firewall_rule" default:"false"` + SniffingTimeout time.Duration `mapstructure:"sniffing_timeout" default:"100ms"` + TlsImplementation string `mapstructure:"tls_implementation" default:"tls"` + UtlsImitate string `mapstructure:"utls_imitate" default:"chrome_auto"` } type Utls struct {