From bc83b756347eceb585077dd8210127c395e6b5bb Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 26 Jan 2021 01:09:09 +0000 Subject: [PATCH] (Fix) Lint errors --- internal/openvpn/command.go | 3 ++- internal/openvpn/logs.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/openvpn/command.go b/internal/openvpn/command.go index 0e9a35a5..29324d5b 100644 --- a/internal/openvpn/command.go +++ b/internal/openvpn/command.go @@ -8,7 +8,8 @@ import ( "github.com/qdm12/gluetun/internal/constants" ) -func (c *configurator) Start(ctx context.Context) (stdoutLines, stderrLines chan string, waitError chan error, err error) { +func (c *configurator) Start(ctx context.Context) ( + stdoutLines, stderrLines chan string, waitError chan error, err error) { c.logger.Info("starting openvpn") return c.commander.Start(ctx, "openvpn", "--config", string(constants.OpenVPNConf)) } diff --git a/internal/openvpn/logs.go b/internal/openvpn/logs.go index 31ac73f5..4461db52 100644 --- a/internal/openvpn/logs.go +++ b/internal/openvpn/logs.go @@ -77,8 +77,8 @@ Your credentials might be wrong ๐Ÿคจ ` level = logging.ErrorLevel - case strings.Contains(s, "TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)"): - s += ` + case strings.Contains(s, "TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)"): //nolint:lll + filtered = s + ` ๐Ÿš’๐Ÿš’๐Ÿš’๐Ÿš’๐Ÿš’๐Ÿšจ๐Ÿšจ๐Ÿšจ๐Ÿšจ๐Ÿšจ๐Ÿšจ๐Ÿš’๐Ÿš’๐Ÿš’๐Ÿš’๐Ÿš’ That error usually happens because either: