aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/medsrv/medsrv_config.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-02-22 18:11:42 +0100
committerMartin Willi <martin@revosec.ch>2010-02-26 11:44:33 +0100
commit4e18490ea8bbd13b2f49c4be385744fc453f1cfc (patch)
tree17ca79e630cc62f3601652b388672aeda9a92ac7 /src/charon/plugins/medsrv/medsrv_config.c
parentdeac3a0a5da9fd293ae63ac6eb36662c43fdb1e3 (diff)
downloadstrongswan-4e18490ea8bbd13b2f49c4be385744fc453f1cfc.tar.bz2
strongswan-4e18490ea8bbd13b2f49c4be385744fc453f1cfc.tar.xz
Store custom IKE src/dst ports on ike_cfg
Diffstat (limited to 'src/charon/plugins/medsrv/medsrv_config.c')
-rw-r--r--src/charon/plugins/medsrv/medsrv_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charon/plugins/medsrv/medsrv_config.c b/src/charon/plugins/medsrv/medsrv_config.c
index 3df720967..c23955ad0 100644
--- a/src/charon/plugins/medsrv/medsrv_config.c
+++ b/src/charon/plugins/medsrv/medsrv_config.c
@@ -145,7 +145,8 @@ medsrv_config_t *medsrv_config_create(database_t *db)
this->db = db;
this->rekey = lib->settings->get_time(lib->settings, "medsrv.rekey", 1200);
this->dpd = lib->settings->get_time(lib->settings, "medsrv.dpd", 300);
- this->ike = ike_cfg_create(FALSE, FALSE, "0.0.0.0", "0.0.0.0");
+ this->ike = ike_cfg_create(FALSE, FALSE,
+ "0.0.0.0", IKEV2_UDP_PORT, "0.0.0.0", IKEV2_UDP_PORT);
this->ike->add_proposal(this->ike, proposal_create_default(PROTO_IKE));
return &this->public;