Skip to content

Commit

Permalink
Refactor setting port
Browse files Browse the repository at this point in the history
  • Loading branch information
janole committed Jun 9, 2024
1 parent 47d215f commit 80a8072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ENV VPNTAKEYFILE=${VPNDIR}/ta.key
ENV UDPCONF=${VPNDIR}/udp-server.conf
ENV TCPCONF=${VPNDIR}/tcp-server.conf

ENV VPN_PORT=1194


COPY ./rules.v4 /etc/iptables/rules.v4
COPY ./templates ${TEMPLATESDIR}/
COPY ./scripts/* /
Expand Down
2 changes: 0 additions & 2 deletions scripts/init-vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
CAKEYFILE="${CADIR}/ca.key"
CACERTFILE="${CADIR}/ca.crt"

if [ -z "${VPN_PORT}" ]; then export VPN_PORT=1194; fi

createKey()
{
local KEYFILE=$1
Expand Down

0 comments on commit 80a8072

Please sign in to comment.