Skip to content

Commit

Permalink
kazoo: fix connection to root vhost
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed Apr 9, 2017
1 parent 2ceb44f commit 22e33ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/kazoo/kz_amqp.c
Expand Up @@ -735,8 +735,10 @@ int kz_amqp_add_connection(modparam_t type, void* val)

if(newConn->info.vhost == NULL) {
newConn->info.vhost = KZ_URL_ROOT;
#if AMQP_VERSION_MAJOR == 0 && AMQP_VERSION_MINOR < 6
} else if(newConn->info.vhost[0] == '/' && strlen(newConn->info.vhost) == 1) { // bug in amqp_parse_url ?
newConn->info.vhost++;
#endif
}

kz_amqp_server_ptr server_ptr = (kz_amqp_server_ptr)shm_malloc(sizeof(kz_amqp_server));
Expand Down

0 comments on commit 22e33ba

Please sign in to comment.