Skip to content

Commit d79423a

Browse files
committed
fix: tun should not care "force" when Put configs from restful api
1 parent 9cf3eb3 commit d79423a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hub/executor/executor.go

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func ApplyConfig(cfg *config.Config, force bool) {
101101
updateNTP(cfg.NTP)
102102
updateDNS(cfg.DNS, cfg.General.IPv6)
103103
updateListeners(cfg.General, cfg.Listeners, force)
104+
updateTun(cfg.General) // tun should not care "force"
104105
updateIPTables(cfg)
105106
updateTunnels(cfg.Tunnels)
106107

@@ -198,6 +199,9 @@ func updateListeners(general *config.General, listeners map[string]C.InboundList
198199
listener.ReCreateShadowSocks(general.ShadowSocksConfig, tunnel.Tunnel)
199200
listener.ReCreateVmess(general.VmessConfig, tunnel.Tunnel)
200201
listener.ReCreateTuic(general.TuicServer, tunnel.Tunnel)
202+
}
203+
204+
func updateTun(general *config.General) {
201205
listener.ReCreateTun(general.Tun, tunnel.Tunnel)
202206
}
203207

0 commit comments

Comments
 (0)