From 4bba3384e4bfec31bb8d917e153d6eec312b1889 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 26 Nov 2024 01:22:42 -0800 Subject: [PATCH] Update w/ Adguard VPN --- config/vpn-providers.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/vpn-providers.json b/config/vpn-providers.json index 3108295f..41cb355c 100644 --- a/config/vpn-providers.json +++ b/config/vpn-providers.json @@ -50,6 +50,25 @@ "pattern": "(\\w+)\\s+", "replace": "$1,$1\\n" } + }, + { + "id": 4, + "name": "AdGuard VPN", + "bin_path": "/usr/local/bin/adguardvpn-cli", + "install_page": "https://adguard-vpn.com/kb/adguard-vpn-for-linux/installation/", + "account_page": "https://my.adguard-vpn.com/en/account/product/vpn", + "cmd_overrides": { + "account": "account get", + "countries": "list-locations", + "log": "status", + "version": "--version" + }, + "regex": { + "status": "\/VPN is disconnected\/", + "pattern": "/^([A-Z]{2})\\s+.*?\\s([A-Za-z]+(?:\\s[A-Za-z]+)?)\\s+\\d+$/m", + "replace": "$2", + "slice": 3 + } } ] }