stream: add support for UNIX streams
[strongswan.git] / src / libstrongswan / networking / streams / stream_manager.c
index d28cb70..38aaf9a 100644 (file)
@@ -247,6 +247,8 @@ METHOD(stream_manager_t, remove_service, void,
 METHOD(stream_manager_t, destroy, void,
        private_stream_manager_t *this)
 {
+       remove_stream(this, stream_create_unix);
+
        this->streams->destroy(this->streams);
        this->services->destroy(this->services);
        this->running->destroy(this->running);
@@ -278,5 +280,7 @@ stream_manager_t *stream_manager_create()
                .lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
        );
 
+       add_stream(this, "unix://", stream_create_unix);
+
        return &this->public;
 }