diff --git a/README.md b/README.md index d7b6fc8..4f02013 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ docker.io/aw1cks/openconnect' | `PASS` | Password to authenticate with | `mypassword` | | `OTP` | OTP/2FA code (optional) | `123456` | | `SEARCH_DOMAINS` | Search domains to use. DNS for these domains will be routed via the VPN's DNS servers (optional). Separate with a space for multiple domains | `my.corporate-domain.com subdomain.my.corporate-domain.com` | +| `USERAGENT` | User-Agent to pass to OpenConnect. | `AnyConnect` | | `EXTRA_ARGS` | Any additional arguments to be passed to the OpenConnect client (optional). Only use this if you need something specific | `--verbose` | ## Helper scripts diff --git a/entrypoint.sh b/entrypoint.sh index 4cbbacd..80bfa83 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -55,6 +55,8 @@ then OPENCONNECT_ARGS="${OPENCONNECT_ARGS} ${EXTRA_ARGS}" fi +OPENCONNECT_ARGS="${OPENCONNECT_ARGS} --useragent=${USERAGENT:-AnyConnect}" + # URL needs to be the last argument printf "\e[32mSetting URL...\e[0m\n" OPENCONNECT_ARGS="${OPENCONNECT_ARGS} ${URL}"