[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 ,
after checked with our proxy team , they said the destination URL (SocketConnectHost) is not passed to proxy , which means not send url to which proxy need to connect .

below is my quickfixj configure sample:

ProxyType=socks
ProxyHost=*************
ProxyPort=1080
ProxyVersion=5

SocketConnectHost=********
SocketConnectPort=******



 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.

Generated at Sat Nov 23 10:56:01 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.