mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-15 19:22:53 +08:00
fix: tun should not care "force" when Put configs from restful api
Some checks are pending
Trigger CMFA Update / trigger-CMFA-update (push) Waiting to run
Some checks are pending
Trigger CMFA Update / trigger-CMFA-update (push) Waiting to run
This commit is contained in:
parent
9cf3eb39f5
commit
d79423a4fa
|
@ -101,6 +101,7 @@ func ApplyConfig(cfg *config.Config, force bool) {
|
|||
updateNTP(cfg.NTP)
|
||||
updateDNS(cfg.DNS, cfg.General.IPv6)
|
||||
updateListeners(cfg.General, cfg.Listeners, force)
|
||||
updateTun(cfg.General) // tun should not care "force"
|
||||
updateIPTables(cfg)
|
||||
updateTunnels(cfg.Tunnels)
|
||||
|
||||
|
@ -198,6 +199,9 @@ func updateListeners(general *config.General, listeners map[string]C.InboundList
|
|||
listener.ReCreateShadowSocks(general.ShadowSocksConfig, tunnel.Tunnel)
|
||||
listener.ReCreateVmess(general.VmessConfig, tunnel.Tunnel)
|
||||
listener.ReCreateTuic(general.TuicServer, tunnel.Tunnel)
|
||||
}
|
||||
|
||||
func updateTun(general *config.General) {
|
||||
listener.ReCreateTun(general.Tun, tunnel.Tunnel)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user