fix: handle mDNS initialization error without exiting the application

This commit is contained in:
Adam Shiervani 2025-11-07 18:20:17 +01:00
parent 5933adb23b
commit 502cd4ecc2
1 changed files with 1 additions and 1 deletions

View File

@ -53,6 +53,7 @@ func Main() {
// Initialize network
if err := initNetwork(); err != nil {
logger.Error().Err(err).Msg("failed to initialize network")
// TODO: reset config to default
os.Exit(1)
}
@ -63,7 +64,6 @@ func Main() {
// Initialize mDNS
if err := initMdns(); err != nil {
logger.Error().Err(err).Msg("failed to initialize mDNS")
os.Exit(1)
}
initPrometheus()