diff options
author | Martin Willi <martin@revosec.ch> | 2013-09-04 10:43:35 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-09-04 10:43:35 +0200 |
commit | 60fcbb8ba80fc5b5c4cfa71fb293bf497a533cbc (patch) | |
tree | ce2664c18c38e86e12320d5b38d0571ccc82e8bd /src/libcharon/plugins/maemo/maemo_service.c | |
parent | f7cb6eaaa88d8f43e7d65fbca5f81d9c117aa959 (diff) | |
parent | 6301ec0ac522b6b42cebc7e987cb53764be1abad (diff) | |
download | strongswan-60fcbb8ba80fc5b5c4cfa71fb293bf497a533cbc.tar.bz2 strongswan-60fcbb8ba80fc5b5c4cfa71fb293bf497a533cbc.tar.xz |
Merge branch 'ike-address-ranges'
Adds support for multiple subnets and address ranges in left/right ipsec.conf
options. As responder the connection is acceptable if the address is in one of
the ranges/subnets. To initiate connections, at least one single IP or hostname
is required for the peer address.
Diffstat (limited to 'src/libcharon/plugins/maemo/maemo_service.c')
-rw-r--r-- | src/libcharon/plugins/maemo/maemo_service.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcharon/plugins/maemo/maemo_service.c b/src/libcharon/plugins/maemo/maemo_service.c index f04bc5a4c..f0f3105c4 100644 --- a/src/libcharon/plugins/maemo/maemo_service.c +++ b/src/libcharon/plugins/maemo/maemo_service.c @@ -323,10 +323,9 @@ static gboolean initiate_connection(private_maemo_service_t *this, NULL); } - ike_cfg = ike_cfg_create(IKEV2, TRUE, FALSE, "0.0.0.0", FALSE, + ike_cfg = ike_cfg_create(IKEV2, TRUE, FALSE, "0.0.0.0", charon->socket->get_port(charon->socket, FALSE), - hostname, FALSE, IKEV2_UDP_PORT, FRAGMENTATION_NO, - 0); + hostname, IKEV2_UDP_PORT, FRAGMENTATION_NO, 0); ike_cfg->add_proposal(ike_cfg, proposal_create_default(PROTO_IKE)); peer_cfg = peer_cfg_create(this->current, ike_cfg, |