mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
fix: Adjust the timing of loading proxy selection
This commit is contained in:
parent
2fbbf7519f
commit
55811dae32
@ -2,6 +2,7 @@ package executor
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/Dreamacro/clash/listener/inner"
|
||||
"net/netip"
|
||||
"os"
|
||||
"runtime"
|
||||
@ -78,21 +79,20 @@ func ApplyConfig(cfg *config.Config, force bool) {
|
||||
updateSniffer(cfg.Sniffer)
|
||||
updateHosts(cfg.Hosts)
|
||||
updateDNS(cfg.DNS)
|
||||
|
||||
loadProviders(cfg)
|
||||
initInnerTcp()
|
||||
loadProxyProvider(cfg.Providers)
|
||||
updateProfile(cfg)
|
||||
loadRuleProvider(cfg.RuleProviders)
|
||||
updateGeneral(cfg.General, force)
|
||||
updateIPTables(cfg)
|
||||
updateTun(cfg.Tun, cfg.DNS)
|
||||
updateExperimental(cfg)
|
||||
updateProfile(cfg)
|
||||
|
||||
log.SetLevel(cfg.General.LogLevel)
|
||||
}
|
||||
|
||||
func loadProviders(cfg *config.Config) {
|
||||
P.NewInner(tunnel.TCPIn())
|
||||
loadProxyProvider(cfg.Providers)
|
||||
loadRuleProvider(cfg.RuleProviders)
|
||||
func initInnerTcp() {
|
||||
inner.New(tunnel.TCPIn())
|
||||
}
|
||||
|
||||
func GetGeneral() *config.General {
|
||||
|
Loading…
Reference in New Issue
Block a user