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: