From ab734897c6ea2394afaf0fe8714d775c14d656a3 Mon Sep 17 00:00:00 2001 From: Bastian Doetsch Date: Mon, 26 Sep 2022 17:28:53 +0200 Subject: [PATCH] add troubleshooting for new mullvad servers --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4fd517c..1bb7235 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,6 @@ chmod +x /root/mullvad-best-server /usr/bin/wg-quick down $(wg show|grep interface | cut -d: -f2) || echo "nothing to shut down" /usr/bin/wg-quick up "mullvad-$(/root/mullvad-best-server -c de)" ``` + +## Troubleshooting +You may have to update your `/usr/bin/wg-quick` script for the new mullvad servers, as they have names longer than 15 chars. Replace `[[ $CONFIG_FILE =~ ^[a-zA-Z0-9_=+.-]{1,15} ]]$` with `[[ $CONFIG_FILE =~ ^[a-zA-Z0-9_=+.-]{1,25}$ ]]` and `[[ $CONFIG_FILE =~ (^|/)([a-zA-Z0-9_=+.-]{1,15})\.conf$ ]]` with `[[ $CONFIG_FILE =~ (^|/)([a-zA-Z0-9_=+.-]{1,25})\.conf$ ]]`