Do not enable/disable our own sync tunnel

This commit is contained in:
Martin Willi
2010-04-07 13:55:14 +02:00
committed by Martin Willi
parent 9fdf5f712e
commit b7f15be136
3 changed files with 24 additions and 10 deletions
+3 -3
View File
@@ -171,12 +171,12 @@ plugin_t *plugin_create()
return NULL;
}
this->segments = ha_sync_segments_create(this->socket, this->kernel,
count, active);
if (secret)
{
this->tunnel = ha_sync_tunnel_create(secret, local, remote);
this->tunnel = ha_sync_tunnel_create(local, remote, secret);
}
this->segments = ha_sync_segments_create(this->socket, this->kernel,
this->tunnel, count, active);
if (fifo)
{
this->ctl = ha_sync_ctl_create(this->segments);