Removes adding mapped addresses as they are configured from the outside. They can be different settings for that, not only coming from aws harvester.

This commit is contained in:
damencho 2015-11-05 15:28:03 -06:00
parent 9512d303a2
commit c03cfaa674

View File

@ -639,17 +639,6 @@ public class MultiplexingTcpHostHarvester
serverSocketChannels.add(channel);
}
// Automatically add a mapping if we're on EC2
TransportAddress ec2Face = AwsCandidateHarvester.getDiscoveredFace();
TransportAddress ec2Mask;
if (ec2Face != null &&
(ec2Mask = AwsCandidateHarvester.getDiscoveredMask()) != null)
{
addMappedAddress(ec2Mask.getAddress(), ec2Face.getAddress());
logger.info("Adding an EC2 mapping for TCP: "
+ ec2Face + "->" + ec2Mask);
}
acceptThread = new AcceptThread();
acceptThread.start();