Socket/Protocols/INet: Extend INet6SocketAddress syntax to support more flexible...
[senf.git] / Socket / Protocols / INet / ConnectedRawINetSocketHandle.cc
index 45715cb..bb03831 100644 (file)
@@ -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////////////////////////////////////////