From 74a5dfe537d871eda90b88c5a9e3e59a20492617 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 23 Nov 2010 10:45:45 +0100 Subject: Added IKE options to configure source/destination ports --- src/conftest/config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/conftest/config.c') diff --git a/src/conftest/config.c b/src/conftest/config.c index 08c4ec309..56e27d5d6 100644 --- a/src/conftest/config.c +++ b/src/conftest/config.c @@ -103,8 +103,10 @@ static ike_cfg_t *load_ike_config(private_config_t *this, ike_cfg = ike_cfg_create(TRUE, settings->get_bool(settings, "configs.%s.fake_nat", FALSE, config), - settings->get_str(settings, "configs.%s.lhost", "%any", config), 500, - settings->get_str(settings, "configs.%s.rhost", "%any", config), 500); + settings->get_str(settings, "configs.%s.lhost", "%any", config), + settings->get_int(settings, "configs.%s.lport", 500, config), + settings->get_str(settings, "configs.%s.rhost", "%any", config), + settings->get_int(settings, "configs.%s.rport", 500, config)); token = settings->get_str(settings, "configs.%s.proposal", NULL, config); if (token) { -- cgit v1.2.3