Skip to content

Commit

Permalink
fix for crl
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jun 4, 2024
1 parent f9c0781 commit aed4ec6
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions run/root/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ else

if [[ "${VPN_CLIENT}" == "openvpn" ]]; then

if [[ "${VPN_PROV}" == "pia" ]]; then

# turn off compression, required to bypass pia crl-verify issue with pia
# see https://github.com/binhex/arch-qbittorrentvpn/issues/233
sed -i -e 's~^compress~comp-lzo no~g' "${VPN_CONFIG}"

# remove crl-verify as pia verification has invalid date
# see https://github.com/binhex/arch-qbittorrentvpn/issues/233
sed -i '/<crl-verify>/,/<\/crl-verify>/d' "${VPN_CONFIG}"

fi

echo "[debug] Directory listing of files in /config/openvpn/ as follows" ; ls -al '/config/openvpn'
echo "[debug] Contents of OpenVPN config file '${VPN_CONFIG}' as follows..." ; cat "${VPN_CONFIG}"

Expand All @@ -121,6 +109,23 @@ else

fi

# workaround for pia CRL issue
if [[ "${VPN_CLIENT}" == "openvpn" ]]; then

if [[ "${VPN_PROV}" == "pia" ]]; then

# turn off compression, required to bypass pia crl-verify issue with pia
# see https://github.com/binhex/arch-qbittorrentvpn/issues/233
sed -i -e 's~^compress~comp-lzo no~g' "${VPN_CONFIG}"

# remove crl-verify as pia verification has invalid date
# see https://github.com/binhex/arch-qbittorrentvpn/issues/233
sed -i '/<crl-verify>/,/<\/crl-verify>/d' "${VPN_CONFIG}"

fi

fi

# split comma separated string into list from NAME_SERVERS env variable
IFS=',' read -ra name_server_list <<< "${NAME_SERVERS}"

Expand Down

0 comments on commit aed4ec6

Please sign in to comment.