windows: wine-e2e reads the logs before matching them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-26 23:35:15 +03:00
1 parent 68b496cafa
commit 817de77d28
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ ctl status
BODY=$(curl -s --max-time 10 --retry 10 --retry-delay 1 --retry-all-errors --socks5-hostname "127.0.0.1:$PROXY" "http://web.test:$WEB/" || true)
if [ "$BODY" = hello-through-windows ]; then
echo "OK: a page through proxy-suite-service.exe and sing-box.exe under Wine"
elif ctl logs -n 400 2>/dev/null | grep -q "InitializeIpInterfaceEntry procedure in iphlpapi.dll"; then
elif LOGS=$(ctl logs -n 400 2>/dev/null) && [[ $LOGS == *"InitializeIpInterfaceEntry procedure in iphlpapi.dll"* ]]; then
# Wine's iphlpapi lacks what sing-box's network monitor calls at start, TUN or not:
# everything up to sing-box itself (the service, its pipe, the component's hash, the
# rendered and checked config, the supervisor) worked; proxying needs real Windows.