mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
refactor: align GP profile and packaging flow
Main changes: - Refactor connect/auth flows around a single OS profile and host identity model, including gateway fallback and cookie-on-stdin handling. - Align request parameters, HIP host-id propagation, SAML webview user-agent behavior, and portal default-browser handling with observed official client behavior. - Add opt-in cookie cache support and Microsoft Defender HIP reporting while keeping host-id validation explicit. - Add BSD build, packaging, release artifact, and provenance support with FreeBSD/OpenBSD path and dependency cleanup. - Update NixOS install documentation and dependency compatibility fixes.
This commit is contained in:
92 files changed
+9847
-2868
No files matched your search
@@ -5,15 +5,15 @@ LOGFILE="/tmp/gpclient-hipreport.log"
|
||||
|
||||
LINUX_GPCLIENT_BIN="/usr/bin/gpclient"
|
||||
ARM64_HOMEBREW_GPCLIENT_BIN="/opt/homebrew/bin/gpclient"
|
||||
X86_64_HOMEBREW_GPCLIENT_BIN="/usr/local/bin/gpclient"
|
||||
LOCAL_GPCLIENT_BIN="/usr/local/bin/gpclient"
|
||||
GPCLIENT_BIN=""
|
||||
|
||||
if [ -x "$LINUX_GPCLIENT_BIN" ]; then
|
||||
GPCLIENT_BIN="$LINUX_GPCLIENT_BIN"
|
||||
elif [ -x "$ARM64_HOMEBREW_GPCLIENT_BIN" ]; then
|
||||
GPCLIENT_BIN="$ARM64_HOMEBREW_GPCLIENT_BIN"
|
||||
elif [ -x "$X86_64_HOMEBREW_GPCLIENT_BIN" ]; then
|
||||
GPCLIENT_BIN="$X86_64_HOMEBREW_GPCLIENT_BIN"
|
||||
elif [ -x "$LOCAL_GPCLIENT_BIN" ]; then
|
||||
GPCLIENT_BIN="$LOCAL_GPCLIENT_BIN"
|
||||
else
|
||||
echo "Error: gpclient binary not found." > "$LOGFILE"
|
||||
exit 1
|
||||
|
||||
@@ -336,7 +336,11 @@ if [ -n "$IPROUTE" ]; then
|
||||
del_vpngateway_route() {
|
||||
echo "$VPNGATEWAY" | grep -q : && FAMILY=-6 || FAMILY=-4
|
||||
|
||||
$IPROUTE route $route_syntax_del "$VPNGATEWAY"
|
||||
# iproute2 deletes only one matching route at a time. The connect path may
|
||||
# add one host route per matching uplink, so remove them until none remain.
|
||||
while $IPROUTE $FAMILY route $route_syntax_del "$VPNGATEWAY" 2>/dev/null ; do
|
||||
:
|
||||
done
|
||||
if [ $FAMILY != -4 ]; then
|
||||
$IPROUTE $FAMILY route flush cache 2>/dev/null
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user