Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.16
-
None
-
None
-
Patch
Description
MINA fails to connect from behind a proxy if endpoint address is not resolved. This happens for both HTTP and SOCKS proxy and it seems that the reason for this are typos in HttpProxyRequest and SocksProxyRequest. The following changes seem to fix the issue:
HttpProxyRequest line 105: replace if (!endpointAddress.isUnresolved()) { with if (endpointAddress.isUnresolved()) {
SocksProxyRequest line 162: replace if (adr != null && !adr.isUnresolved()) { with if (adr != null && adr.isUnresolved()) {
Note the negation is gone in both cases