Fixed transport mode configuration option
This commit is contained in:
@@ -142,13 +142,17 @@ static child_cfg_t *load_child_config(private_config_t *this,
|
|||||||
enumerator_t *enumerator;
|
enumerator_t *enumerator;
|
||||||
proposal_t *proposal;
|
proposal_t *proposal;
|
||||||
traffic_selector_t *ts;
|
traffic_selector_t *ts;
|
||||||
|
ipsec_mode_t mode = MODE_TUNNEL;
|
||||||
host_t *net;
|
host_t *net;
|
||||||
char *token;
|
char *token;
|
||||||
int bits;
|
int bits;
|
||||||
|
|
||||||
child_cfg = child_cfg_create(child, &lifetime, NULL, FALSE,
|
if (settings->get_bool(settings, "configs.%s.%s.transport",
|
||||||
settings->get_bool(settings, "configs.%s.%s.transport",
|
FALSE, config, child))
|
||||||
FALSE, config, child),
|
{
|
||||||
|
mode = MODE_TRANSPORT;
|
||||||
|
}
|
||||||
|
child_cfg = child_cfg_create(child, &lifetime, NULL, FALSE, mode,
|
||||||
ACTION_NONE, ACTION_NONE, FALSE, 0, 0, NULL, NULL);
|
ACTION_NONE, ACTION_NONE, FALSE, 0, 0, NULL, NULL);
|
||||||
|
|
||||||
token = settings->get_str(settings, "configs.%s.%s.proposal",
|
token = settings->get_str(settings, "configs.%s.%s.proposal",
|
||||||
|
|||||||
Reference in New Issue
Block a user