Remove extra interfaces from sockets.