[QFJ-1000] can't pass target destination URL (SocketConnectHost) to proxy server Created: 09/Feb/21 Updated: 22/May/24 |
|
Status: | Open |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.6.4 |
Fix Version/s: | None |
Type: | Bug | Priority: | Blocker |
Reporter: | leaf | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None | ||
Environment: |
Windows |
Description |
i am using quickfixj to connect with target URL using proxy , the proxy protocol is socks , below is my quickfixj configure sample: ProxyType=socks SocketConnectHost=******** |
Comments |
Comment by Christoph John [ 09/Feb/21 ] |
Did you try with a newer version? 1.6.4 is rather old and there have been proxy related fixes in the last versions. |
Comment by Shen [ 22/May/24 ] |
The issue seems like IoSessionInitiator(https://github.com/quickfix-j/quickfixj/blob/a404c8e1c355fbfd95439cb1aa86b5685f543ddd/quickfixj-core/src/main/java/quickfix/mina/initiator/IoSessionInitiator.java#L170) initializes proxy connection with InetSocketAddress instead of hostname. This requires proxy white listing to be done for IP than hostnames. Mina supports creating proxy Connection with hostname. IoSessionInitiator needs to be modified to make use of that. |