mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 14:36:15 -05:00
Release 3.6.0
This commit is contained in:
58 files changed
+2191
-642
No files matched your search
@@ -4,11 +4,7 @@ use gpapi::{collection::CollectionControl, process::collection::CollectorCommand
|
||||
use std::io;
|
||||
|
||||
pub(super) fn collect(commands: &CollectorCommands<'_>, control: &dyn CollectionControl) -> io::Result<WindowsReport> {
|
||||
let executable = std::env::current_exe()?;
|
||||
let helper = executable
|
||||
.parent()
|
||||
.ok_or_else(|| io::Error::other("Application directory is unavailable"))?
|
||||
.join("gp-posture.exe");
|
||||
let helper = gpapi::windows::application_directory()?.join("gp-posture.exe");
|
||||
let output = commands
|
||||
.run_executable(&helper, &[])?
|
||||
.ok_or_else(|| io::Error::new(io::ErrorKind::NotFound, "Windows posture helper is not installed"))?;
|
||||
|
||||
Reference in new issue
Block a user