Skip to content
Snippets Groups Projects
Commit 65dd34c6 authored by dw6's avatar dw6
Browse files

don't connect when sockaddr is empty ipv6 only. ipv4 behaviour unknown.

parent 234f947b
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,10 @@ senf::ConnectedRawV6SocketProtocol::init_client(int const & protocol, INet6Socke
const
{
init_client(protocol);
clientHandle().connect(address);
if(address.boolean_test()){
//only connect if socket is not [::]:0, this results in an irreversible binding to the lo interface (linux 2.6.15)
clientHandle().connect(address);
}
}
///////////////////////////////cc.e////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment