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