feat(wip): amnezia-wg 3.1 support

This commit is contained in:
FUFSoB committed 2026-08-30 18:07:43 +05:00
1 parent 539f6a13ee
commit a456534801
29 files changed
+4092 -12

No files matched your search

+10
View File
@@ -2,13 +2,19 @@ set -euo pipefail
# Wrapped binary provides runtime config through env vars.
SUB_TAGS_FILE="${SUB_TAGS_FILE:-}"
AWG_PROFILES_FILE="${AWG_PROFILES_FILE:-}"
PROXYCHAINS_QUIET_ARG="${PROXYCHAINS_QUIET_ARG:-}"
SUB_TAGS=()
AWG_PROFILES=()
if [ -n "$SUB_TAGS_FILE" ] && [ -f "$SUB_TAGS_FILE" ]; then
mapfile -t SUB_TAGS < <(jq -r '.[]' "$SUB_TAGS_FILE")
fi
if [ -n "$AWG_PROFILES_FILE" ] && [ -f "$AWG_PROFILES_FILE" ]; then
mapfile -t AWG_PROFILES < <(jq -r '.[]' "$AWG_PROFILES_FILE")
fi
cmd="${1:-status}"
shift || true
@@ -33,6 +39,10 @@ case "$cmd" in
cmd_mode_toggle proxy-suite-tun on "${1:-}"
;;
awg)
cmd_awg "$@"
;;
route-mode)
cmd_route_mode "$@"
;;