From 9ee3ed754d0cb47f29ace58996c916f86b61367e Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 23 Dec 2025 01:51:59 +0000 Subject: [PATCH] chore(cyberghost/updater): do not log warnings for "no such host" --- internal/provider/cyberghost/updater/servers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/provider/cyberghost/updater/servers.go b/internal/provider/cyberghost/updater/servers.go index 44f86ed9..4b6fd4b5 100644 --- a/internal/provider/cyberghost/updater/servers.go +++ b/internal/provider/cyberghost/updater/servers.go @@ -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 {