Added IKE config option to fake NAT situations
authorMartin Willi <martin@revosec.ch>
Tue, 23 Nov 2010 09:43:48 +0000 (10:43 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 5 Jan 2011 15:45:48 +0000 (16:45 +0100)
src/conftest/config.c

index 1e70025..08c4ec3 100644 (file)
@@ -101,7 +101,8 @@ static ike_cfg_t *load_ike_config(private_config_t *this,
        proposal_t *proposal;
        char *token;
 
-       ike_cfg = ike_cfg_create(TRUE, FALSE,
+       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);
        token = settings->get_str(settings, "configs.%s.proposal", NULL, config);