diff --git a/src/internet-node/udp-socket.cc b/src/internet-node/udp-socket.cc index 9212614fa..9f4f6744d 100644 --- a/src/internet-node/udp-socket.cc +++ b/src/internet-node/udp-socket.cc @@ -183,19 +183,6 @@ UdpSocket::Connect(const Address & address) NotifyConnectionSucceeded (); m_connected = true; - NS_LOG_LOGIC ("Updating local address"); - - uint32_t localIfIndex; - - Ptr ipv4 = m_node->QueryInterface (Ipv4::iid); - - if (ipv4->GetIfIndexForDestination (m_defaultAddress, localIfIndex)) - { - m_endPoint->SetLocalAddress (ipv4->GetAddress(localIfIndex)); - } - - NS_LOG_LOGIC ("Local address is " << m_endPoint->GetLocalAddress()); - return 0; }