Remove default -v option for openconnect
This commit is contained in:
parent
2fcdb047db
commit
1409480620
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
# openconnect + tinyproxy + microsocks
|
# openconnect + tinyproxy + microsocks
|
||||||
|
|
||||||
This Docker image contains an [openconnect client](http://www.infradead.org/openconnect/) (version 8.04 with pulse/juniper support) and the [tinyproxy proxy server](https://tinyproxy.github.io/) for http/s connections (default on port 8888) and the [microsocks proxy](https://github.com/rofl0r/microsocks) for socks5 connections (default on port 8889) in a very small [alpine linux](https://www.alpinelinux.org/) image (around 60 MB).
|
This Docker image contains an [openconnect client](http://www.infradead.org/openconnect/) (version 8.04 with pulse/juniper support) and the [tinyproxy proxy server](https://tinyproxy.github.io/) for http/s connections (default on port 8888) and the [microsocks proxy](https://github.com/rofl0r/microsocks) for socks5 connections (default on port 8889) in a very small [alpine linux](https://www.alpinelinux.org/) image (around 20 MB).
|
||||||
|
|
||||||
You can find the image on docker hub:
|
You can find the image on docker hub:
|
||||||
https://hub.docker.com/r/wazum/openconnect-proxy
|
https://hub.docker.com/r/wazum/openconnect-proxy
|
||||||
|
|
|
@ -13,11 +13,11 @@ echo "socks5 proxy listening on $SOCKS5_PROXY_PORT"
|
||||||
# Start openconnect
|
# Start openconnect
|
||||||
if [[ -z "${OPENCONNECT_PASSWORD}" ]]; then
|
if [[ -z "${OPENCONNECT_PASSWORD}" ]]; then
|
||||||
# Ask for password
|
# Ask for password
|
||||||
openconnect -v -u $OPENCONNECT_USER $OPENCONNECT_OPTIONS $OPENCONNECT_URL
|
openconnect -u $OPENCONNECT_USER $OPENCONNECT_OPTIONS $OPENCONNECT_URL
|
||||||
elif [[ ! -z "${OPENCONNECT_PASSWORD}" ]] && [[ ! -z "${OPENCONNECT_MFA_CODE}" ]]; then
|
elif [[ ! -z "${OPENCONNECT_PASSWORD}" ]] && [[ ! -z "${OPENCONNECT_MFA_CODE}" ]]; then
|
||||||
# Multi factor authentication (MFA)
|
# Multi factor authentication (MFA)
|
||||||
(echo $OPENCONNECT_PASSWORD; echo $OPENCONNECT_MFA_CODE) | openconnect -v -u $OPENCONNECT_USER $OPENCONNECT_OPTIONS --passwd-on-stdin $OPENCONNECT_URL
|
(echo $OPENCONNECT_PASSWORD; echo $OPENCONNECT_MFA_CODE) | openconnect -u $OPENCONNECT_USER $OPENCONNECT_OPTIONS --passwd-on-stdin $OPENCONNECT_URL
|
||||||
elif [[ ! -z "${OPENCONNECT_PASSWORD}" ]]; then
|
elif [[ ! -z "${OPENCONNECT_PASSWORD}" ]]; then
|
||||||
# Standard authentication
|
# Standard authentication
|
||||||
echo $OPENCONNECT_PASSWORD | openconnect -v -u $OPENCONNECT_USER $OPENCONNECT_OPTIONS --passwd-on-stdin $OPENCONNECT_URL
|
echo $OPENCONNECT_PASSWORD | openconnect -u $OPENCONNECT_USER $OPENCONNECT_OPTIONS --passwd-on-stdin $OPENCONNECT_URL
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue