Removes Wild Cloud cruft.
This commit is contained in:
@@ -68,12 +68,6 @@ func (api *API) syncNftablesOnly(globalCfg *config.State) {
|
||||
return
|
||||
}
|
||||
|
||||
routes, err := api.buildInstanceRoutes()
|
||||
if err != nil {
|
||||
slog.Error("failed to build instance routes for nftables sync", "component", "nftables-sync", "error", err)
|
||||
return
|
||||
}
|
||||
|
||||
var customRoutes []haproxy.CustomRoute
|
||||
for _, cr := range globalCfg.Cloud.HAProxy.CustomRoutes {
|
||||
customRoutes = append(customRoutes, haproxy.CustomRoute{Name: cr.Name, Port: cr.Port, Backend: cr.Backend})
|
||||
@@ -81,7 +75,7 @@ func (api *API) syncNftablesOnly(globalCfg *config.State) {
|
||||
|
||||
extraTCP, extraUDP := config.SplitExtraPorts(nftCfg.ExtraPorts)
|
||||
extraUDP = append(extraUDP, api.vpnAutoUDPPorts()...)
|
||||
ports := api.haproxy.GetListenPorts(routes, customRoutes)
|
||||
ports := api.haproxy.GetListenPorts(customRoutes)
|
||||
nftContent := api.nftables.Generate(ports, extraTCP, extraUDP, nftCfg.WANInterface)
|
||||
if err := api.nftables.WriteRules(nftContent); err != nil {
|
||||
slog.Error("failed to write nftables rules", "component", "nftables-sync", "error", err)
|
||||
|
||||
Reference in New Issue
Block a user