From 09eccd7cd9e2009f1db2c8255115552b145359da Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Thu, 15 Jul 2021 22:43:30 +0000 Subject: [PATCH] Fix: events routing behavior when version information is disabled --- cmd/gluetun/main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/gluetun/main.go b/cmd/gluetun/main.go index 24a5c763..e800bcc1 100644 --- a/cmd/gluetun/main.go +++ b/cmd/gluetun/main.go @@ -464,11 +464,7 @@ func routeReadyEvents(ctx context.Context, done chan<- struct{}, buildInfo model // Runs the Public IP getter job once _, _ = publicIPLooper.SetStatus(constants.Running) - if !versionInformation { - break - } - - if first { + if versionInformation && first { first = false message, err := versionpkg.GetMessage(ctx, buildInfo, httpClient) if err != nil {