diff --git a/source/extensions/filters/listener/original_dst/original_dst.cc b/source/extensions/filters/listener/original_dst/original_dst.cc index bac55da1005b..2d7aaae45f01 100644 --- a/source/extensions/filters/listener/original_dst/original_dst.cc +++ b/source/extensions/filters/listener/original_dst/original_dst.cc @@ -27,7 +27,7 @@ Network::FilterStatus OriginalDstFilter::onAccept(Network::ListenerFilterCallbac Network::Address::InstanceConstSharedPtr original_local_address; if (Network::Utility::isTransparent(socket)) { - original_local_address = socket.addressProvider().localAddress(); + original_local_address = socket.connectionInfoProvider().localAddress() } else { original_local_address = getOriginalDst(socket); }