From b898a9975c45187af81e7eff9defb8d7e85015f4 Mon Sep 17 00:00:00 2001 From: Gahow Wang Date: Mon, 28 Sep 2026 22:13:12 +0800 Subject: [PATCH] Route IB Gateway through pc's ipads SOCKS5 proxy Co-Authored-By: Claude Opus 5.5 --- deploy/systemd/ibgateway.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/systemd/ibgateway.service b/deploy/systemd/ibgateway.service index 4d30344..e43aec8 100644 --- a/deploy/systemd/ibgateway.service +++ b/deploy/systemd/ibgateway.service @@ -4,6 +4,9 @@ After=network-online.target [Service] Type=simple +# Reach IBKR through pc's "ipads" proxy (mihomo, SOCKS5 on 7892). IBC drops -D +# lines from ibgateway.vmoptions, so the JVM gets them from the environment. +Environment="JAVA_TOOL_OPTIONS=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=7892" ExecStart=/usr/bin/xvfb-run -a -s "-screen 0 1024x768x24" %h/ibc/gatewaystart.sh -inline Restart=always RestartSec=60