gherr
15 years agoOccasional Contributor
HttpMonitor Tunnel mode not working
In version 3.6.1 HttpMonitor does not work when tunnel mode is selected. Regardless of the setting in the dialog, the top right label in http monitor always shows "HTTP Proxy" and it operates in proxy mode only.
After a quick look at the code, it seems that the problem is caused by the following line in file SoapMonitor.java:
Instead of the ssl endpoint from the dialog, null is passed to SoapMonitorEngine causing it to switch to proxy mode.
After changing the call to
SoapMonitor works as expected in tunnel mode.
I hope, this fix will be included with the next release.
Thanks.
Gabor
After a quick look at the code, it seems that the problem is caused by the following line in file SoapMonitor.java:
public void start()
{
int localPort = getLocalPort();
// monitorEngine = new TcpMonMonitorEngine();
monitorEngine = new SoapMonitorEngineImpl();
( ( SoapMonitorEngineImpl )monitorEngine ).setSslEndpoint( null ); // <===== PROBLEM
monitorEngine.start( this, localPort );
Instead of the ssl endpoint from the dialog, null is passed to SoapMonitorEngine causing it to switch to proxy mode.
After changing the call to
( ( SoapMonitorEngineImpl )monitorEngine ).setSslEndpoint( sslEndpoint );
SoapMonitor works as expected in tunnel mode.
I hope, this fix will be included with the next release.
Thanks.
Gabor