chore(cyberghost/updater): do not log warnings for "no such host"

This commit is contained in:
Quentin McGaw
2025-12-23 01:51:59 +00:00
parent 0ca466fbd5
commit 9ee3ed754d
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"sort"
"strings"
"github.com/qdm12/gluetun/internal/models"
"github.com/qdm12/gluetun/internal/provider/common"
@@ -18,6 +19,9 @@ func (u *Updater) FetchServers(ctx context.Context, minServers int) (
resolveSettings := parallelResolverSettings(possibleHosts)
hostToIPs, warnings, err := u.parallelResolver.Resolve(ctx, resolveSettings)
for _, warning := range warnings {
if strings.HasSuffix(warning, "no such host") {
continue // ignore no such host warnings
}
u.warner.Warn(warning)
}
if err != nil {