diff --git a/source/extensions/filters/listener/original_dst/original_dst.cc b/source/extensions/filters/listener/original_dst/original_dst.cc index 3bc718b28baa..09cedd9916d0 100644 --- a/source/extensions/filters/listener/original_dst/original_dst.cc +++ b/source/extensions/filters/listener/original_dst/original_dst.cc @@ -23,7 +23,7 @@ Network::FilterStatus OriginalDstFilter::onAccept(Network::ListenerFilterCallbac if (socket.addressType() == Network::Address::Type::Ip) { Network::Address::InstanceConstSharedPtr original_local_address; - if (Network::Utility::isTransparent(socket)) { + if (std::getenv("TIGERA_TPROXY_ENABLED") != nullptr && Network::Utility::isTransparent(socket)) { original_local_address = socket.addressProvider().localAddress(); } else { original_local_address = getOriginalDst(socket);