From de82d4e6168e705cb01e8449b6d762477be54a9d Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 15 Mar 2021 02:13:10 +0000 Subject: [PATCH] Fix: use udp by default for custom openvpn config --- internal/openvpn/custom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/openvpn/custom.go b/internal/openvpn/custom.go index fad6f68c..918d96b4 100644 --- a/internal/openvpn/custom.go +++ b/internal/openvpn/custom.go @@ -171,7 +171,7 @@ func extractConnectionFromLines(lines []string) ( //nolint:gocognit switch connection.Protocol { case "": - return connection, fmt.Errorf("%w: network protocol not found", errExtractConnection) + connection.Protocol = "udp" case "tcp", "udp": default: return connection, fmt.Errorf("%w: network protocol not supported: %s", errExtractConnection, connection.Protocol)