Set user agent for latest anyconnect to avoid 404

This commit is contained in:
Janis Jansons 2024-04-29 18:12:29 +03:00
parent bdb508675c
commit fb4c7afcf5

View File

@ -79,7 +79,7 @@ else
fi fi
if [ -z "$SEED" ] && [ -z "$OC_YUBIKEY" ]; then if [ -z "$SEED" ] && [ -z "$OC_YUBIKEY" ]; then
sudo openconnect \ sudo openconnect --useragent='AnyConnect Darwin_i386 5.0.05040' \
$COMMON_PARAMS \ $COMMON_PARAMS \
--csd-wrapper hostscan-bypass.sh \ --csd-wrapper hostscan-bypass.sh \
--os=mac-intel \ --os=mac-intel \
@ -89,7 +89,7 @@ fi
else else
eval $LOGIN | sudo openconnect \ eval $LOGIN | sudo openconnect --useragent='AnyConnect Darwin_i386 5.0.05040' \
$COMMON_PARAMS \ $COMMON_PARAMS \
--csd-wrapper hostscan-bypass.sh \ --csd-wrapper hostscan-bypass.sh \
--os=mac-intel \ --os=mac-intel \