windows: the AmneziaWG tunnel in the release, checked under Wine
package.sh builds the amneziawg component (awg-tunnel.exe, Wintun); the setup test adds a system-wide profile and checks its tunnel service registered (Wine's sc has no qc: its registry key), started (the tunnel runs as a service up to Wintun, which Wine lacks; its log read back), and removed with its profile. README and notes say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5cf3a237e6
commit
0a7d8d99c0
4 files changed
+210
-6
No files matched your search
@@ -69,9 +69,10 @@ CONF='[Interface]\nPrivateKey = yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=\nAd
|
||||
printf '{ "amneziaWg": { "enable": true, "profiles": { "home": { "config": "%s" } } } }' "$CONF" >"$WORK/awg.json"
|
||||
wine "$PF/proxy-ctl.exe" config set "Z:$WORK/awg.json" | tr -d '\r' | sed 's/^/ /'
|
||||
sleep 3
|
||||
qc=$(wine sc qc 'AmneziaWGTunnel$home' 2>/dev/null | tr -d '\r')
|
||||
# Wine's sc has no qc: the service's registry key says the same.
|
||||
qc=$(wine reg query 'HKLM\System\CurrentControlSet\Services\AmneziaWGTunnel$home' 2>/dev/null | tr -d '\r' || true)
|
||||
grep -q 'awg-tunnel.exe' <<<"$qc" || fail "no tunnel service registered: $(wine "$PF/proxy-ctl.exe" logs proxy-suite-awg-vpn -n 20 | tr -d '\r')"
|
||||
grep -i 'BINARY_PATH_NAME' <<<"$qc" | sed 's/^ */ /'
|
||||
grep -iE 'ImagePath|ServiceSidType|DependOnService' <<<"$qc" | sed 's/^ */ /'
|
||||
wine "$PF/proxy-ctl.exe" awg | tr -d '\r' | sed 's/^/ /'
|
||||
# Wine has no Wintun driver: the tunnel itself cannot come up here, only be asked to.
|
||||
wine "$PF/proxy-ctl.exe" awg on home 2>&1 | tr -d '\r' | sed 's/^/ on: /' || true
|
||||
@@ -80,7 +81,7 @@ wine "$PF/proxy-ctl.exe" awg log home -n 5 2>&1 | tr -d '\r' | sed 's/^/ log: /
|
||||
printf '{}' >"$WORK/none.json"
|
||||
wine "$PF/proxy-ctl.exe" config set "Z:$WORK/none.json" >/dev/null
|
||||
sleep 3
|
||||
wine sc query 'AmneziaWGTunnel$home' >/dev/null 2>&1 && fail "the tunnel service outlived its profile"
|
||||
wine reg query 'HKLM\System\CurrentControlSet\Services\AmneziaWGTunnel$home' >/dev/null 2>&1 && fail "the tunnel service outlived its profile"
|
||||
echo " registered, and removed with its profile"
|
||||
|
||||
echo "== setup /S again, over the running install"
|
||||
|
||||
Reference in new issue
Block a user