Skip to content

Commit

Permalink
fix: tun should not care "force" when Put configs from restful api
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Aug 26, 2024
1 parent 9cf3eb3 commit d79423a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hub/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit d79423a

Please sign in to comment.