Fix for HER-2019 fetchHTTP httpBindAddress setting doesn't take effect

* FetchHTTP.java
    use keyed properties for httpBindAddress setting, as expected in configureBindAddress(CrawlURI, HostConfiguration)
This commit is contained in:
Noah Levitt
2012-08-28 16:03:17 -07:00
parent a7a2b3cf7e
commit 0d65d7e446
@@ -505,12 +505,11 @@ public class FetchHTTP extends Processor implements Lifecycle {
* Local IP address or hostname to use when making connections (binding
* sockets). When not specified, uses default local address(es).
*/
protected String httpBindAddress = "";
public String getHttpBindAddress(){
return this.httpBindAddress;
return (String) kp.get(HTTP_BIND_ADDRESS);
}
public void setHttpBindAddress(String address) {
this.httpBindAddress = address;
kp.put(HTTP_BIND_ADDRESS, address);
}
public static final String HTTP_BIND_ADDRESS = "httpBindAddress";