logiguard fork v3: full patch set on verified 8c74db0 tree
Includes prior-session patches (carry forward so the app compiles): - crates/gpui/build.rs: cross-compile manifest fix - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method - crates/gpui/src/window.rs: Window::activate_with_token public API - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix Plus the focus-serial fix: - serial.rs: SerialKind::KeyboardEnter - client.rs: store wl_keyboard.enter serial; latest_serial_of() Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
30
script/mitm-proxy.sh
Executable file
30
script/mitm-proxy.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if command -v docker >/dev/null 2>&1; then
|
||||
ENGINE="docker"
|
||||
elif command -v podman >/dev/null 2>&1; then
|
||||
ENGINE="podman"
|
||||
else
|
||||
echo "Neither Docker nor Podman found. Please install one of them."
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -d ~/.mitmproxy ]; then
|
||||
mkdir -p ~/.mitmproxy
|
||||
fi
|
||||
|
||||
CONTAINER_ID="$(${ENGINE} run -d --rm -it -v ~/.mitmproxy:/home/mitmproxy/.mitmproxy -p 9876:8080 mitmproxy/mitmproxy mitmdump)"
|
||||
|
||||
trap "${ENGINE} stop \"$CONTAINER_ID\" 1> /dev/null || true; exit 1" SIGINT
|
||||
|
||||
echo "Add the root certificate created in ~/.mitmproxy to your certificate chain for HTTP"
|
||||
echo "on macOS:"
|
||||
echo "sudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain ~/.mitmproxy/mitmproxy-ca-cert.pem"
|
||||
echo "Press enter to continue"
|
||||
read
|
||||
|
||||
http_proxy=http://localhost:9876 cargo run
|
||||
|
||||
# Clean up detached proxy after running
|
||||
${ENGINE} stop "${CONTAINER_ID}" 2>/dev/null || true
|
||||
Reference in New Issue
Block a user