Added left-/rightikeport ipsec.conf options to use custom IKE ports

This commit is contained in:
Martin Willi
2010-02-26 11:44:33 +01:00
parent cc2eaddee4
commit 667b73721a
11 changed files with 23 additions and 3 deletions
+3 -3
View File
@@ -232,9 +232,9 @@ static ike_cfg_t *build_ike_cfg(private_stroke_config_t *this, stroke_msg_t *msg
}
}
ike_cfg = ike_cfg_create(msg->add_conn.other.sendcert != CERT_NEVER_SEND,
msg->add_conn.force_encap,
msg->add_conn.me.address, IKEV2_UDP_PORT,
msg->add_conn.other.address, IKEV2_UDP_PORT);
msg->add_conn.force_encap,
msg->add_conn.me.address, msg->add_conn.me.ikeport,
msg->add_conn.other.address, msg->add_conn.other.ikeport);
add_proposals(this, msg->add_conn.algorithms.ike, ike_cfg, NULL);
return ike_cfg;
}