diff options
author | Martin Willi <martin@revosec.ch> | 2010-11-23 10:45:45 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-01-05 16:45:48 +0100 |
commit | 74a5dfe537d871eda90b88c5a9e3e59a20492617 (patch) | |
tree | 59e0fcce2c091008d74bae19755e80d82c814d7c /src/conftest/config.c | |
parent | 448db6d9c08ecc4def59c06b63c6172ac9dd3c77 (diff) | |
download | strongswan-74a5dfe537d871eda90b88c5a9e3e59a20492617.tar.bz2 strongswan-74a5dfe537d871eda90b88c5a9e3e59a20492617.tar.xz |
Added IKE options to configure source/destination ports
Diffstat (limited to 'src/conftest/config.c')
-rw-r--r-- | src/conftest/config.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) { |