Added IKE options to configure source/destination ports
authorMartin Willi <martin@revosec.ch>
Tue, 23 Nov 2010 09:45:45 +0000 (10:45 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 5 Jan 2011 15:45:48 +0000 (16:45 +0100)
src/conftest/config.c

index 08c4ec3..56e27d5 100644 (file)
@@ -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)
        {