Route IB Gateway through pc's ipads SOCKS5 proxy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 22:13:12 +08:00
parent 787c41ba63
commit b898a9975c

View File

@@ -4,6 +4,9 @@ After=network-online.target
[Service] [Service]
Type=simple 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 ExecStart=/usr/bin/xvfb-run -a -s "-screen 0 1024x768x24" %h/ibc/gatewaystart.sh -inline
Restart=always Restart=always
RestartSec=60 RestartSec=60