feat: add listener policy calculator

This commit is contained in:
Stavros
2026-05-11 18:47:37 +03:00
parent 35cd3b9ce5
commit b8b0e45ec4
2 changed files with 38 additions and 15 deletions
+1 -15
View File
@@ -255,21 +255,7 @@ func (app *BootstrapApp) Setup() error {
}
// setup listeners
runUnix := app.config.Server.SocketPath != ""
runHTTP := app.config.Server.SocketPath == "" || app.config.Server.ConcurrentListenersEnabled
runTailscale := app.services.tailscaleService != nil
if runHTTP {
app.listeners = append(app.listeners, ListenerHTTP)
}
if runUnix {
app.listeners = append(app.listeners, ListenerUnix)
}
if runTailscale {
app.listeners = append(app.listeners, ListenerTailscale)
}
app.listeners = app.calculateListenerPolicy()
if app.config.Server.ConcurrentListenersEnabled {
app.log.App.Info().Msg("Concurrent listeners enabled, will run on all available listeners")