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)