stream: add support for TCP stream services
[strongswan.git] / src / libstrongswan / networking / streams / stream_manager.c
index 0141e1d..db38977 100644 (file)
@@ -250,6 +250,7 @@ METHOD(stream_manager_t, destroy, void,
        remove_stream(this, stream_create_unix);
        remove_stream(this, stream_create_tcp);
        remove_service(this, stream_service_create_unix);
+       remove_service(this, stream_service_create_tcp);
 
        this->streams->destroy(this->streams);
        this->services->destroy(this->services);
@@ -285,6 +286,7 @@ stream_manager_t *stream_manager_create()
        add_stream(this, "unix://", stream_create_unix);
        add_stream(this, "tcp://", stream_create_tcp);
        add_service(this, "unix://", stream_service_create_unix);
+       add_service(this, "tcp://", stream_service_create_tcp);
 
        return &this->public;
 }