mirror of https://github.com/apache/jmeter.git
HC3 does not allow IP Source field to override httpclient.localaddress
Bugzilla Id: 55388
git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1511691 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: dd1a34699e
This commit is contained in:
parent
05e7ea52b7
commit
8cdeab9e46
|
|
@ -23,7 +23,6 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.InetAddress;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -439,13 +438,11 @@ public class HTTPHC3Impl extends HTTPHCAbstractImpl {
|
|||
hc.setHost(host, port, protocol); // All needed to ensure re-usablility
|
||||
|
||||
// Set up the local address if one exists
|
||||
if (localAddress != null){
|
||||
hc.setLocalAddress(localAddress);
|
||||
final InetAddress inetAddr = getIpSourceAddress();
|
||||
if (inetAddr != null) {// Use special field ip source address (for pseudo 'ip spoofing')
|
||||
hc.setLocalAddress(inetAddr);
|
||||
} else {
|
||||
final InetAddress inetAddr = getIpSourceAddress();
|
||||
if (inetAddr != null) {// Use special field ip source address (for pseudo 'ip spoofing')
|
||||
hc.setLocalAddress(inetAddr);
|
||||
}
|
||||
hc.setLocalAddress(localAddress); // null means use the default
|
||||
}
|
||||
|
||||
final String proxyHost = getProxyHost();
|
||||
|
|
|
|||
|
|
@ -225,6 +225,7 @@ Previously the default was 1, which could cause unexpected additional traffic.
|
|||
<li><bugzilla>55161</bugzilla> - Useless processing in SoapSampler.setPostHeaders</li>
|
||||
<li><bugzilla>54482</bugzilla> - HC fails to follow redirects with non-encoded chars</li>
|
||||
<li><bugzilla>54142</bugzilla> - HTTP Proxy Server throws an exception when path contains "|" character</li>
|
||||
<li><bugzilla>55388</bugzilla> - HC3 does not allow IP Source field to override httpclient.localaddress</li>
|
||||
</ul>
|
||||
|
||||
<h3>Other Samplers</h3>
|
||||
|
|
|
|||
Loading…
Reference in New Issue