Skip to content

Commit 9aab522

Browse files
committed
Add option to specify openvpn management port for programmatic control
of the service.
1 parent 9148f3e commit 9aab522

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ if [ -d "${OVPN_OTP_AUTH:-}" ]; then
9696
addArg "--reneg-sec" "0"
9797
fi
9898

99+
if [ -n "${OVPN_MANAGEMENT_PORT}" ]; then
100+
addArg "--management" "127.0.0.1 ${OVPN_MANAGEMENT_PORT}"
101+
fi
102+
99103
if [ $DEBUG ]; then
100104
echo "openvpn.conf:"
101105
cat $OVPN_CONFIG

0 commit comments

Comments
 (0)