diff --git a/windows/tools/wine-e2e.sh b/windows/tools/wine-e2e.sh index 09ce495..dbcdbfb 100755 --- a/windows/tools/wine-e2e.sh +++ b/windows/tools/wine-e2e.sh @@ -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.