我正在尝试通过quickfix / j启动器连接到代理。我在启动器设置中具有以下属性:
[SESSION]
ConnectionType=initiator
TargetCompID=XXX
SocketConnectHost=<destination domain name>
SocketConnectPort=XXXX
SessionQualifier=xyz
ProxyType=socks
ProxyVersion=5
ProxyHost=<proxy domain name>
ProxyPort=1080
但是,我在创建proxyRequest时遇到了异常。任何线索将不胜感激。
[NioProcessor-2] ERROR org.apache.mina.proxy.AbstractProxyLogicHandler - Unable to send Socks request:
java.lang.IllegalArgumentException: SocksProxyRequest object has no suitable endpoint information
at org.apache.mina.proxy.handlers.socks.Socks5LogicHandler.encodeProxyRequestPacket(Socks5LogicHandler.java:137) ~[mina-core.jar:?]
at org.apache.mina.proxy.handlers.socks.Socks5LogicHandler.writeRequest(Socks5LogicHandler.java:292) ~[mina-core.jar:?]
at org.apache.mina.proxy.handlers.socks.Socks5LogicHandler.doHandshake(Socks5LogicHandler.java:88) ~[mina-core.jar:?]
快速更新: 如果将目标域名替换为IP,则连接有效。有什么想法可以使它适用于域名吗?