Accoding to https://github.com/PowerDNS/pdns/pull/11889
> rgacogne
> Since we only use the local address in the constructor, I don't think we need to keep it around?
>
> FredericDT
> Possibly using that d_local in statistical function?
>
> rgacogne
> I would prefer not keeping it for now, we can always add it back later when we actually decide to do something with it :)
Signed-off-by: FredericDT <frederic.dt.twh@gmail.com>
private:
ComboAddress d_remote;
- boost::optional<ComboAddress> d_local;
std::thread d_worker;
void worker();
};
TeeAction::TeeAction(const ComboAddress& rca, const boost::optional<ComboAddress>& lca, bool addECS)
- : d_remote(rca), d_local(lca), d_addECS(addECS)
+ : d_remote(rca), d_addECS(addECS)
{
d_fd=SSocket(d_remote.sin4.sin_family, SOCK_DGRAM, 0);
try {
- if (d_local) {
- SBind(d_fd, *d_local);
+ if (lca) {
+ SBind(d_fd, *lca);
}
SConnect(d_fd, d_remote);
setNonBlocking(d_fd);